SE450
:
Primitive Types
[15/53]
8 primitive types
int, long, short, byte
double, float
char
boolean
suffixes L = long, F = float
character constants
'a', '\n', '\x2122'
Casts
(int) x
,
(float)
x
Math
class has methods that operate on numbers:
y = Math.sqrt(x);