Although it is part of the java.util.concurrent package, the TimeUnit enum is useful in many contexts outside of concurrency. In this post, I look at how the TimeUnit enum can be used even in code ...
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 ...