The abstract Map class in Java is a very useful utility especially in cases where there is a need to store object pairs in a generic collection, if you’d rather not create your own container objects for such a coupling. HashMap is one of the most commonly used implementations of Java maps and Java 9 offers an even cooler method for its initialization. I want to start with a quick refresher for those who had …