Please explain why enums must not be declared within a method.
posted 6 years ago
From the JLS
Nested enum types are implicitly static. It is permissable to explicitly declare a nested enum type to be static.
This implies that it is impossible to define a local enum, or to define an enum in an inner class