This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HashMap " Watch "HashMap " New topic
Author

HashMap

Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99

Hi All,

I have a Map<Integer, Arraylist<String>> m1 = new HashMap<Integer, ArrayList<String>>();

I have an array. length of the total size of map keys. i.e. m1 (key 1, 2,3) then length of array is 3



Someone can advise and help me.

Thanks,
Ananth Ram
Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99
Never mind. Got the way iterate entry.getValue().get(index)

Thanks,
Ananth Ram
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashMap
 
Similar Threads
Iterating over Map using JSTL
get method names in the class file
HashMap values-- I think I know why but how do I fix this null pointer exception?
HashMap Duplicate Key should give error?
HashMap remove multiple elements