Enum Types
Kishori Sharan, Adam L. Davis · Apress eBooks · 2021
In this chapter, you will learn: what enum types are in Java, how to declare and use enum types, how to use enums in switch, how to associate data and methods to enum constants, how to perform a reverse lookup for enums, and how to use EnumSet to work with ranges of enum constants.