Variables

Defining

// const
final int num = 90;

// primatives
int age = 90;
double decimalAge = 8.1;
boolean hasJob = true;
char letter = 'a';

// non-primatives
String name = "sentence blah blah blah";
// or
String name = new String("blah\n blah\\ blah\"\"");
/* prints the following
blah
 blah\ blah""
*/

Concatenation

"stings stuff" + stringVar;

Changing value

a = b

a *= b
a += b
a -= b
a /= b
a %= b

a++
a--

a ** 2 // exponent

a * b
a + b
a - b
a / b
a % b

Order of operation

  1. Parentheses
  1. Exponents
  1. Modulo/Multiplication/Division
  1. Addition/Subtraction