This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes enum concept Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "enum concept" Watch "enum concept" New topic
Author

enum concept

krishna ranjan
Greenhorn

Joined: Nov 22, 2011
Posts: 8
can anyone explain me the concept of enum .. i am not able to get this topic .. please explain it with example also..
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help you.

http://www.plotnix.com/enum/index.html
http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
http://javahowto.blogspot.com/2008/04/java-enum-examples.html

It works like a typed array. Better than array of String because if you pass the wrong type of Enum in a argument you will receive a compile time error.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

krishna ranjan wrote:can anyone explain me the concept of enum .. i am not able to get this topic


You'll get better responses if you give some indication of what you've read and tried so far and what in particular you don't understand.

.. please explain it with example also..


There are plenty of examples available on the web. Please SearchFirst.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38030
    
  22
. . . and welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: enum concept
 
Similar Threads
hi everybody, good morning
retrieve enumeration datatype into jsp
about enum
Enum doubt
Doubt About Enum in java 1,5