> means greater-than (only for primitives) < means less-than (only for primitives) >= means greater-than-or-equal (only for primitives) <= means less-than-or-equal (only for primitives) != means not-equal (primitives and references) == means equal (primitives and references) NOTE: That's 2 equal signs in a row, with no whitespace between them.
! means not || means or && means and
Logical Expression Means (num1 != 0) num1 not-equal to 0 ((num1 == 0) && (num2 != 0)) num1 equal to 0 AND num2 not-equal to 0
So, "APPLE" is less than "apple", and "apple" is less than "zoo".
if
Statement