Well imagine an array with methods, without fixed size however, it expands as you add elements to it.
With a HashMap you can add as many items as you want, and each item has its own key. So you add them in pairs, using the
put() method. Then when you invoke the get method, you add a key as an argument, and it will return whatever value is associated with that key.
This post really doesnt belong here, in my humble opinion.