Since Java 1.7, String variables can be used as switch arguments. So, is necessary update this question answer.