statements;
statements;
Statements to be run if condition is true are placed inside { } }statements1;
Statements to be run if condition is true are placed inside { }statements2;
Statements to be run if condition is false are placed inside { }case value1 :
note syntax! case value followed by a colon :statement1;
runs statement1 if expression equals value1break;
case value2 :
case value3 :
statement2;
runs statement2 if expression equals value2 or value3break;
default :
statement0;
run statement0 if expression did not equal any of the valuesstatements;
The java statements to run and repeat for as long as condition is true are placed inside { }{
statements;
The java statements to run and repeat for as long as condition is true are placed inside { }}