GeeCON Prague 2014*
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


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
 
Consider Paul's rocket mass heater.
 
subject: HashMap