Java Enums

Java enum is a special kind of Java class that represents a group of constants. To create an enum, use the enum keyword and separate the constants with a comma.

Code :