Forums Register Login

Switch Enum Question

+Pie Number of slices to send: Send


How come just saying CAT inside switch works?
+Pie Number of slices to send: Send
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 ]
This tiny ad is suggesting that maybe she should go play in traffic.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1142 times.
Similar Threads
Why can't we assign parent class object to child class reference?
Creating Objects
Reg. casting from Khalid Mughal
ClassCastException
invalid cast exception
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:16:10.