This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What is the output for this Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is the output for this Class" Watch "What is the output for this Class" New topic
Author

What is the output for this Class

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 65
what is the output for the above code , In K & B,page 281, they given output as :
A. The output could contain 30
B. The output could contain @bf73fa




But when i run this application ,i got compilation error , because getBidValue() is not there in enum class.

Any one help for this
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41098
    
  29
Most likely a spelling error. Try getValue rather than getBidValue.
 
Consider Paul's rocket mass heater.
 
subject: What is the output for this Class