Chapter 12Enumerations, Autoboxing, Static Import, and Annotations
Key Skills & Concepts
Understand enumeration fundamentals
Use the class-based features of enumerations
Apply the values( ) and valueof( ) methods to enumerations
Create enumerations that have constructors, instance variables, and methods
Employ the ordinal( ) and compareTo( )
Get Java, A Beginner's Guide, 5th Edition, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.