struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinod Kumar <>
Subject iterating of collection of HashMapsusing logic:iterate
Date Thu, 12 Oct 2006 22:29:02 GMT
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using

HashMap h1 = new HashMap();

String id=1;
HashMap h2 = new HashMap();

then I make entry to h1 like

h1.put(id,h2) and so on...more entries added to h1.

Now I want to iterate thru all the values of h1.

Please note that I am interested only in values of the
h2 and NOT the keys.

Thanks in advance for your help


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message