This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Switch Enum Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Switch Enum Question" Watch "Switch Enum Question" New topic
Author

Switch Enum Question

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390


How come just saying CAT inside switch works?
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Check this link
http://elliottback.com/wp/archives/2005/03/03/enumerated-constants-in-java/.

14.11 The switch Statement

[ October 28, 2006: Message edited by: wise owen ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Switch Enum Question
 
Similar Threads
invalid cast exception
Why can't we assign parent class object to child class reference?
ClassCastException
Reg. casting from Khalid Mughal
Creating Objects