PPT Slide
Multiple Selections via switch
Note the “optional” default case at the end of the switch statement.
It is optional only in terms of syntax.
System.out.println (“One”);
System.out.println (“Two”);
System.out.println (“Three”);
System.out.println(“Not 1, 2, or 3”);
In practice you should always include a ‘default’
E.g., 1989 AT&T phone system crash