As you learned in Segment 468, you can also use
characters in
switch
statements, because characters are considered integral types:
switch (codeString.charAt(0)) { case 'M': ... break; ... }
In this example, the integer-producing expression actually produces a character, and the integer literals actually are characters.