How can I iterate through a nested HashMap?
HashMap installed as follows:
HashMap<String, HashMap<String, Student>>
Where Student is an object containing the name variable. If, for example, my HashMap looked like this (the following code is not mine, it's just to simulate the contents of the contents of the hash map)
hm => HashMap<'S', Hashmap<'Sam', SamStudent>> HashMap<'S', Hashmap<'Seb', SebStudent>> HashMap<'T', Hashmap<'Thomas', ThomasStudent>>
How can I repeat all keys with a single letter, then each full key, and then pull out the studentβs name?
java hashmap
jsan
source share