0
Is Overoading an hashmap possible?
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 ответ
+ 2
you can use nested hashmap for example:
Hashmap <String, Hashmap <Integer, String>>
it maps string key to a tuple of hashmap