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 ...
Get the scoop on typesafe enums and learn how to use them properly in switch statements, then get started with Java annotations and meta-annotations types like Target, which you can use to clarify the ...