6 ms·
Java enums are very underused and rather awesome. This article misses out members and constructors, which is a pity.
by ZoFreX 15y ago
Java enums are very underused and rather awesome. This article misses out members and constructors, which is a pity.
- peter_lawrey 15y agoIn a state machine, all the state should be in the context rather than the code blocks. The Java Tutorial on enums talks about fields and constructors.