• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Switch Enum Question

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How come just saying CAT inside switch works?
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic