Java Enum



public static void main(String[] args) {

  Day current = Day.MONDAY;
  System.out.println(current);    // MONDAY
  System.out.println(current.ordinal());    // 1
}

enum Day{
  MONDAY,
  TUESDAY,
  WEDNESDAY,
  THURSDAY,
  FRIDAY,
  SATURDAY,
  SUNDAY
}