Monday, February 16, 2015

Java Enum Assign Values

For Java Enums, the values are normally auto-assigned starting from 0.

To assign specific value, see the example here: http://stackoverflow.com/questions/8811815/is-it-possible-to-assign-numeric-value-to-an-enum-in-java

No comments:

Post a Comment