aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Enum Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Enum Constructor" Watch "Enum Constructor" New topic
Author

Enum Constructor

Amit Batra
Ranch Hand

Joined: Mar 04, 2006
Posts: 361


The result is shown as a 'compilation fail' because a enum constructor that takes a string must be supplied. How can I get this to compile?
Stary Kapec
Ranch Hand

Joined: Dec 04, 2005
Posts: 81
Amit Batra
Ranch Hand

Joined: Mar 04, 2006
Posts: 361
Thanks a bunch!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
If you want to see "bright" and "dark" when you print Turn.ON and Turn.OFF respectively, then you can add (to Jasiek's code):


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enum Constructor