aspose file tools*
The moose likes Beginning Java and the fly likes the enum-value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "the enum-value "final" ?" Watch "the enum-value "final" ?" New topic
Author

the enum-value "final" ?

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I have something like this:

enum{start, final;}

however, final is a java-reserverd word. How can I use the word "final" in my enum-value?
nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I have solved that via using another word instead final.
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Why not have it in Cap Case if you want "final" only and not another word like "End"?
nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
oh yes of course: FINAL :-)

thanks.
 
 
subject: the enum-value "final" ?