• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HashMap

 
chander shivdasani
Ranch Hand
Posts: 206
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to find a union of 2 hashmaps?.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by definition the of UNION of the two sets {1, 2, 3} and {2, 3, 4} is {1, 2, 3, 4}. the putAll() method will do this

putAll
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic