*
The moose likes Beginning Java and the fly likes Enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Enum" Watch "Enum" New topic
Author

Enum

Dharmakumar Gajendran
Greenhorn

Joined: Feb 22, 2010
Posts: 20
What is an Enum and its usage?
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

After reading this what don't you get?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
Dharmakumar Gajendran wrote:Can any please explain what is Enum and its usage?

Thanks.


Enum helps you enumerate things, like say that days in a week, countries in the world etc. A good tutorial can be found here - http://java.sun.com/docs/books/tutorial/java/javaOO/enum.html
 
jQuery in Action, 2nd edition
 
subject: Enum
 
Similar Threads
retrieve enumeration datatype into jsp
How to define constants for several classes?
Creating SingleTON without static variables
what results byte code in java
Enum Problem