Strings in switch Statements - Oracle Documentation
public String getTypeOfDayWithSwitchStatement(String dayOfWeekArg) { String typeOfDay; switch (dayOfWeekArg) { case "Monday": typeOfDay ... The Java compiler generates generally more efficient bytecode from switch statements that use ......