| Author |
Iterating through HashMap of HashMaps
|
sravani jetty
Ranch Hand
Joined: Jun 06, 2007
Posts: 38
|
|
Hi,
I have a HashMap as defined below
public HashMap<Integer,HashMap><Integer,HashMap><Character,MyObject>>> map1 = new HashMap<Integer,HashMap><Integer,HashMap><Character,MyObject>>>()
I want to iterate through this Map and display the values in the MyObject. Can anyone suggest me how to do that?
Thanks
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3032
|
|
Work from the outside in.
You have a HashMap <Integer,Object> map1 and how would you iterate through the values to get all the Objects? The HashMap API may help.
|
Steve
|
 |
sravani jetty
Ranch Hand
Joined: Jun 06, 2007
Posts: 38
|
|
|
Yeah Thank you. I got it.
|
 |
 |
|
|
subject: Iterating through HashMap of HashMaps
|
|
|