Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Java in General
Iterating through HashMap of HashMaps
sravani jetty
Ranch Hand
Posts: 38
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 4179
22
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 38
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yeah Thank you. I got it.
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Using Generics, HashMap with two different objects as Keys
Map key or key in object?
Filling an ArrayList
Java Generics HashMap
Using HashMap need to count the frequency of letters in a String
More...