aspose file tools
The moose likes Java in General and the fly likes Iterating through HashMap of HashMaps Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Iterating through HashMap of HashMaps" Watch "Iterating through HashMap of HashMaps" New topic
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
    
    4

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Iterating through HashMap of HashMaps
 
Similar Threads
Java Generics HashMap
Using Generics, HashMap with two different objects as Keys
Filling an ArrayList
Map key or key in object?
Using HashMap need to count the frequency of letters in a String