1public enum MyEnum {
2 INDIA("India"),
3 RUSSIAN("Russian"),
4 ENGLAND("England"),
5 NORTH_AMERICA("North America");
6
7 private String name;
8
9 MyEnum(String name) {
10 this.name = name;
11 }
12
13 public String getName() {
14 return this.name;
15 }
16}
17