This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Doubt About Enum in java 1,5 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Doubt About Enum in java 1,5" Watch "Doubt About Enum in java 1,5" New topic
Author

Doubt About Enum in java 1,5

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
can anybody explain the use of enum in java1.5 ?

why enum can't be declared inside a method?

please explain?
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

Have a look at The Java Tutorial - Enum Types.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Doubt About Enum in java 1,5
 
Similar Threads
How to define constants for several classes?
hi everybody, good morning
enum - need help
retrieve enumeration datatype into jsp
about enum