Remember to review questions starting on p. 268.
Types of Decision Structures:
... if statement
... if-else statement
... multi-way if-else
... nested if-else
... switch statements
... indentation conventions
Code blocks & variable scope
Decision Structure Syntax:
... decision logic and flow charts
... condition and body
... boolean value, expression
Random numbers
Building Boolean Expressions:
... relational operator (<, >, <=, >=, ==, !=)
... boolean (logical) operators (!, &&, ||)
... boolean operators precedence (See table)
... truth tables (e.g. Tables 4-6,4-7,4-8)
... De Morgan's Laws
String Comparison
... Lexicographic ordering (of Strings)
... compareTo() and .equals operators
Other (optional)
... The Conditional Operator bool ? val1 : val2
... Switch statement (p. 238)
... DecimalFormat (p. 248)
<, >, <=. >=, ==, !=
==
. Instead, use myString1.equals(myString2)
int bigger = (x>y) ? x : y ;