RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment