Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
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 Réponse
+ 2
you can use nested hashmap for example:
Hashmap <String, Hashmap <Integer, String>>
it maps string key to a tuple of hashmap