Quote
Java enums are typically used to hold array like data. This tip shows how to use enum for hierarchical structures.
I liked this article very much, since it shows (once again) that there is always a way of using something that you did not yet think of yourself. Inspired by this post I had fun developing this (admittedly not always useful) technique to avoid switch-statements: http://schneide.word...switch-use-enum.

New Topic/Question



MultiQuote






|