The switch statement
•
The switch statement is a holdover from
C
•
“Switch” can be used instead of “if …
else” as a selection control structure
•
Can only be used when the selection
condition is that some variable is equal to
a whole number
•