Switch on String in Java
For anyone working with any other modern language, (such as CFML, C#, JavaScript, Ruby, and more), using a String within a switch-case statement is not an issue, and probably something you've done many times without thinking about.
However, when working in Java you cannot use strings in a switch statement.
Fortunately, despite what many sites suggest, there is a solution.