The variable used in a switch statement can only be integers, convertable integers (byte, short, char) , strings and enums. You can have any number of case statements within a switch.
The variable used in a switch statement can only be integers, convertable integers (byte, short, char) , strings and enums. You can have any number of case statements within a switch.