Java 5.0 supports enumerated types. An enumeration type files can contain only set to constants defined using enum keyword.

Java Code:
public enum Europe {
FRANCE, GERMANY, ITALY, SPAIN
}


Europe myCountry;

myCountry = Europe.ITALY;