Java Language -- Control Flow II
switch (expression) /* Just as in C */
- {
- case Constant1: /* Do following if expression=Constant1 */
- /* Bunch of Stuff */ break;
- case Constant2: /* Do following if expression=Constant2 */
- /* Bunch of Stuff */ break;
- default:
- /* Bunch of Stuff */ break;
- }
One can go to the next iteration of a loop by using
or break out of the loop by using