• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enum concept

 
krishna ranjan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic