Intoduction to Computer Science - Java
Alternating program flow with a Switch Case
- switch ( integer )
- {
- case 1:
- statement;
- statement;
- statement;
- break:
- case 2:
- statement;
- statement;
- statement;
- break:
- case 3:
- statement;
- statement;
- statement;
- break:
- :
- :
- default:
- statement;
- statement;
- }
© Nachum Danzig September 2003