Java Reference
In-Depth Information
6 Replacing an Interface with an Enum Class
J ava 2
v 5 . 0
J ava 2
v 5 . 0
The project in this chapter utilizes an interface, STAction, to provide a list of
constant values. This list is more properly provided via an enumerated list. Mod-
ify the STAction.java file to change it from an interface to an Enum class. Modify
all source code that uses STAction to reflect this change. Compile the changed
classes and test the modified project.
Notes
Search WWH ::




Custom Search