Announcement
iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008
Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.
Voters make better lovers! Login and vote now.
By bloid
via java.dzone.com
Published: May 16 2008 / 14:07
In his JavaOne talk this year, Josh Bloch gave some very useful tips about using enums in Java. Here is my take on enums, and how to use them to represent simple value lists which would otherwise be stored in code tables. This document is in two parts - Part one covers the basics of Java enums, and Part 2 goes into more advanced use cases such as using enums with Hibernate.
Comments
Peter Stofferis replied ago:
A short primer on Java enums - part 2 see:
http://www.dzone.com/links/a_short_primer_on_java_enums_part_2.html
Voters For This Link (11)
Voters Against This Link (1)