class EnumSwitch02 { private static class C1 { static final int[] $SwitchMap$Enum01; static { $SwitchMap$Enum01 = new int[Enum01.values().length]; $SwitchMap$Enum01[Enum01.CCC.ordinal()] = 1; $SwitchMap$Enum01[Enum01.AAA.ordinal()] = 2; } } public static void main(String[] args){ Enum01 en = Enum01.AAA; switch(C1.$SwitchMap$Enum01[en.ordinal()]){ case 1: System.out.println("CCC"); break; case 2: System.out.println("AAA"); break; } } }