File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to call method which was in enum class 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 "How to call method which was in enum class" Watch "How to call method which was in enum class" New topic
Author

How to call method which was in enum class

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 60
Hi,

i read K & B, i structed with this, i tried in my machine, but i didn't get,
In below code how to call getLidCode() in OVERWHELMING.
Please any one can help.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
java$ java Coffee
Lid code for OVERWHELMING coffee = A
The only change I made to your code was correcting the indentation.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And people say indentation isn't useful.
 
 
subject: How to call method which was in enum class
 
Similar Threads
Constant Specific class body [ENUM]
use of " this " ...
Hard Exam question
Semicolon after enum constant declaration?