Playing with HashMap
HashMap, as I mentioned before, is a key-value store. You place an object into this collection by specifying a "key".
You can then retrieve the object by using the key.
Let me show you with code examples:
In the example above, I am creating a map of Country-> Capital city. You can see the usage of put(), size() and get() methods to demonstrate how you can use the key-value store