| This Chapter | |
| - | Appendix A: Enums |
| - | Introduction to enum |
| - | Enums in a Class |
| - | The java.lang.Enum Class |
| - | Iterating over Enumerated Values |
| - | Switching on Enum |
Java 5 added a new type, enum, for enumerating values. With this new type, you can say goodbye to static final fields that so far have been used as constants. However, enum is much more than a substitute for static finals and this appendix presents this new type in detail.