This isn\'t a matter of me being stuck, but rather I\'m looking for a tidy way to write my code.
Essentially, I\'m writing an event driven application. The user trig
I believe that in Java, you can simply nest enums, as long as your non-enum constants come first.
enum Action { FOO, BAR; enum MOVE { UP, DOWN, LEFT, RIGHT } }
This compiles for me and gives me the behavior you were looking for.