Meaningless Drivel is fun!*
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


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: 63
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: 39095
    
  23
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.
 
GeeCON Prague 2014
 
subject: How to call method which was in enum class