An enumerated type specifies a set of related constants as its values. Examples include the days in a week, the standard north/south/east/west compass directions, a currency’s coin denominations, and ...
When I was writing code regularly in both C++ and Java in the early days of Java, I often missed Java’s (at the time) lack of an enum. Fortunately, when Java finally got its enum, it was worth the ...