Enums are lists of constants. When you need a predefined list of values which do not represent some kind of numeric or textual data, you should use an enum.
http://crunchify.com/why-and-for-what-should-i-use-enum-java-enum-examples/
Enums are lists of constants. When you need a predefined list of values which do not represent some kind of numeric or textual data, you should use an enum.
http://crunchify.com/why-and-for-what-should-i-use-enum-java-enum-examples/