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 Beginning Java and the fly likes How to compile and run this enum class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to compile and run this enum class" Watch "How to compile and run this enum class" New topic
Author

How to compile and run this enum class

rizwana mujawar
Ranch Hand

Joined: Feb 24, 2012
Posts: 36
Iam not getting any output... Its compiling... But there is no output... I should get "SMALL" as output... What to do...? Need Help... Here is my code...



Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56538
    
  14

On which line are you emitting the expected output?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56538
    
  14

P.S. It's spelled coffee (two f's)
Md. Minhajur Rahman
Ranch Hand

Joined: Apr 10, 2012
Posts: 33
Hi, May be You have missed to call ... System.out.print(c.size);
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to compile and run this enum class
 
Similar Threads
doubt in enum
Enum
What is Enum?
enum - Compilation error
Strange behaviour of enum