Topics
Vocabulary
variable
type
constant
magic number
literal
statement
expression
mod (remainder) functiondeclare
initialize
assignment statement
operator
operator precedence
cast
stepwise refinement
Topics
Vocabulary
if statement
condition and body
if-else statement
multi-way if-else
nested if-else
boolean value, expressionrelational operator (<, >, <=, >=, ==, !=)
boolean operators (&&, ||, !)
lexicographic ordering (of Strings)
De Morgan's Laws
Topics
<, >, <=. >=, ==, !=
==
. Instead, use myString1.equals(myString2)
Vocabulary
while-loop
for-loop
unwinding and hand tracing
do-while-loop
nested loop
break StatementLoop variable, initialization, condition, update; loop body
sentinel value
pseudorandom number
counter, running total
accumulator variable
Topics