northfred / java-enum-examples Goto Github PK
View Code? Open in Web Editor NEWExamples of Enum classes. How to get the values from the enum objects. In this case, the enum class must contain a constructor to set the value, and a public accessor to fetch the value.