Java Review: Control Flow

if Statement with a single true clause

   if (expression) {
       statements // do these if expression is true
   }

if Statement with true and false clauses

   if (expression) {
       statements // do these if expression is true
   } else {
       statements // do these if expression is false
   }

if Statement with parallel tests

   if (expression1) {
       statements // do these if expression1 is true
   } else if (expression2) {
       statements // do these if expression2 is true
   } else if (expression3) {
       statements // do these if expression3 is true
   . . .
   } else {
       statements // do these no expression was true
   }

switch Statement

   switch (expr) {
      case c1:
            statements // do these if expr == c1
            break;
      case c2: 
            statements // do these if expr == c2
            break;
      case c2:
      case c3:
      case c4:  //  Cases can simply fall thru.
            statements // do these if expr ==  any of c's
            break;
      . . .
      default:
            statements // do these if expr != any above
   }

End