File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Doubt About Enum in java 1,5" Watch "Doubt About Enum in java 1,5" New topic

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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14917

Have a look at The Java Tutorial - Enum Types.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Doubt About Enum in java 1,5
It's not a secret anymore!