• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection

 
Sandy Lal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to write a program with Using HashMap and ArrayList,How i can do that or write a code for that.
Q.A java class having a Map of with values as List. Print each Key in the Map and the values in the list.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the JavaDocs for Map? In particular, have you noticed the values() and keySet() methods?
 
Henry Wong
author
Marshal
Pie
Posts: 20882
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Furthermore, commonly used core classes, like the collection classes, are hardly considered "other java apis"... Moving this topic to the Java in General, Beginner forum.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic