Hope you are doing well,

Enum in java is a data type that contains fixed set of constants.

It can be used for days of the week (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY and SATURDAY) , directions (NORTH, SOUTH, EAST and WEST) etc. The java enum constants are static and final implicitly. It is available from JDK 1.5.

Java Enums can be thought of as classes that have fixed set of constants.

Simple  Examples of Java Enum:

 class EnumExample1{  


    public enum Season { WINTER, SPRING, SUMMER, FALL } 
    public static void main(String[] args) {  


    for (Season s : Season.values()) {





Output: WINTER


Now download the assignment solution from the below attachment and i think now you can able to understand it.

Please let me know if you have any further issue regarding this.