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?

10th Jan 2017, 7:17 AM
Soaga Kingsley
Soaga Kingsley - avatar
1 Answer
+ 2
you can use nested hashmap for example: Hashmap <String, Hashmap <Integer, String>> it maps string key to a tuple of hashmap
10th Jan 2017, 1:32 PM
Farzin Hooshmand
Farzin Hooshmand - avatar