For Enum refer previous post – clickhere
Now we are discussing how to access all the values of Enum with values().
Suppose we have created Course Enum. Continue reading
Enums are lists of constants. When we need a predefined list of values,we should always use enums.
We should always use enums when a variable (especially a method parameter) can only take one out of a small set of possible values.
1) All enums implicitly extend
java.lang.Enum. Continue reading