Strings in switch Yes, we can use a switch statement with Strings in Java .5 Tem 2019
Read moreCan I use string in switch case C?
No you can’t . The case labels of a switch need to be compile time evaluable constant expressions with an integral type. But int literals like ‘+’ satisfy that requirement.
Read moreHow do you write a switch case with a string?
String in Switch Statement Example 1
Read more