Java: How To Use Enum in Switch
When using enums in a switch, it is almost natural to assume they will be used like a regular switch. Unfortunately to accomodate enums, Java had to enhance its specification and enums in switch behave differently than regular switch statements in two significant and non-trivial ways.
Filed under Headline News, How To, Java Software, Open Source Software, Programming, Sun |
Feedback |
RSS 2.0 |
Email this Article



































