Java - Conditionals and Control Flow - 10. Switch Statement


#1

We've had quite a few cases of users taking this instruction literally:

Set the char variable penaltyKick value to L, R, or C.

Resulting in this code or something similar:

char penaltyKick = L, R, or C;

A possible change:

Set the char variable penaltyKick value to one of L, R, or C.


#2

Maybe even slightly better since users are taking it literally:

Set the char variable penaltyKick's value to one of "L", "R", or "C".

?