Java Enum example - Recent Activity Subscribe

Show: Turn New Off Turn Edits Off Turn Ratings Off Turn Comments Off
23 November 2008 2
Comment Stou S. replied to a comment on the Java snippet “Java Enum example
23 November 2008 at 10:19 PM
" I took the example from the book Wicked Cool Java and I think that the code isn't supposed to be that great and/or efficient, just a clear example of how enum's work in Java. I strongly encouraged... more " reply
Comment pixelmonkey commented on the Java snippet “Java Enum example
23 November 2008 at 03:33 PM
" This example doesn't seem very good. You're creating separate anonymous class definitions for each enum constant for no reason. You could just as easily support the same thing with far less code... more " reply
17 June 2008 1
Edit Stou S. edited the Java snippet “Java Enum example
17 June 2008 at 02:33 PM
Stou S. posted the Java snippet “Java Enum example
17 June 2008 at 02:32 PM
A self contained example of creating and using enums in Java 1.5