Initializing and Using Maps, HashMaps and SortedMaps in Java
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