java - Why can't I switch on a String? - Stack Overflow
Switch statements with String cases have been implemented in Java SE 7, at least 16 years after they were first requested. A clear reason for the delay was not provided, but it likely had to do with performance. Implementation in JDK 7 The feature has now...