October 2014
Beginner to intermediate
285 pages
6h 24m
English
This is not a complete list of every Java feature—it’s just the important bits you might need, shown as examples in most cases.
int i = 7; i = -5;
double num = 3.14; num = 0.01; num = -3e15 (means -3 times 10 to the 15th power)
boolean shouldGetUp=true; shouldGetUp=false (or any Boolean expression that resolves to true or false)
String s="Hello";
String[] grades = {"A", "B", "C", "D", "F", "Inc"};
a + b
a - b
a * b
a / b
a % b (for whole numbers—integers—only)
((a + b) * z) (a + b will be added first, then multiplied by z)
Read now
Unlock full access