What if i wanted to use one key for two objects. As in
Hashmap <String, Integer, String> .
for <State , Population, Capital >
Does it work and how do I go about it?
1/10/2017 7:17:33 AM
you can use nested hashmap for example:
Hashmap <String, Hashmap <Integer, String>>
it maps string key to a tuple of hashmap
Learn Playing. Play Learning
Send us a message