enum EnumA {EL01, EL02, EL03} class Samp01 { enum EnumB {EL01, EL02, EL03} public static void main(String[] args){ EnumA ea = EnumA.EL01; switch(ea){ case EnumA.EL01: case EnumA.EL02: case EnumA.EL03: } EnumB eb = EnumB.EL01; switch(eb){ case EnumB.EL01: case EnumB.EL02: case EnumB.EL03: } } }