// Purpose: Test the enum type

 

A.    Source files:

Book.java                     EnumTest.java

B.    Running the application using NetBeans:

1.   Download both files into a temporary folder.

2.   Create a new project with existing sources and add both files into the project.