| |
| | Javanotes 5.0, Section 3.6 -- The switch Statement |
 | | A switch statement allows you to test the value of an expression and, depending on that value, to jump directly to some location within the switch statement. |
 | | As the final case in a switch statement you can, optionally, use the label "default:", which provides a default jump point that is used when the value of the expression is not listed in any case label. |
 | | In this case, it sees a switch statement in which the type of expression is int and in which the cases that are covered are 0, 1, and 2. |
| math.hws.edu /javanotes/c3/s6.html (1337 words) |
|