previous
|
start
|
next
Primitive Types
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);
previous
|
start
|
next