switch expression {
case value:
statements;
case value, value:
statements;
default:
statements;
}
The switch statement evaluates an expression and then selects a block of
code with an equal constant value listed. If no value matches, then the
default block is executed, or if absent, no blocks are executed.
The parenthesis surrounding the expression are optional.