This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Switch Enum Question  RSS feed

 
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!