An enum defines a type with a fixed set of named constants. Java enums are far more powerful than simple constant lists in other languages — they're full-fledged classes that can have fields, constructors, and methods.
Basic enum
{
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
}
Day.MONDAY;
(today) {
MONDAY -> System.out.println();
SATURDAY, SUNDAY -> System.out.println();
-> System.out.println();
}
