«« Next » « Previous
«« Next » « Previous

Link Details

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.
Link 81066 thumbnail

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.
  • 11
  • 1
  • 1679
  • 684

Comments

Add your comment
User 119725 avatar

Peter Stofferis replied ago:

0 votes Vote down Vote up Reply

A short primer on Java enums - part 2 see:
http://www.dzone.com/links/a_short_primer_on_java_enums_part_2.html

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (1)