Selection structures are explained in this chapter using flowcharts, pseudocode, and the corresponding Java code. The if-then, if-then-else, and nested if structures, including if-then-else-if and if-then-if structures, are introduced. The dangling-else problem is also discussed. Logical operators are presented followed by the introduction of the case structure. Two complete programs are provided: one with objects and one without.
KeywordsLogical Operator Break Statement Truth Table Switch Statement Java Code
- 4.Streib JT (2011) Guide to assembly language: a concise introduction. Springer, LondonGoogle Scholar