The following slides discuss various control structures of Java.

Slide 9.1: Decision making
Slide 9.2: The if statement — IfDemo.java
Slide 9.3: The if...else statement
Slide 9.4: The nested if statement
Slide 9.5: The if...else...if ladder
Slide 9.6: The switch statement
Slide 9.7: The switch statement (cont.)
Slide 9.8: The switch statement (cont.): String cases
Slide 9.9: The break statement
Slide 9.10: The continue statement
Slide 9.11: The return statement

  ☂ Coding Review

Slide 9.a: Two switch statement examples





      “There are three things all wise men fear:    
      the sea in storm, a night with no moon, and the anger of a gentle man.”    
      ― Patrick Rothfuss, The Wise Man’s Fear