Answers for "can we you have a variable in switch statement in java"

2

can switch statements in java work with boolean

The expression in the switch statement must be of type char, byte, short, or int. It cannot be boolean, float, double, or String.
Posted by: Guest on February-14-2021

Code answers related to "can we you have a variable in switch statement in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language