This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HashMap" Watch "HashMap" New topic
Author

HashMap

chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

Is there a way to find a union of 2 hashmaps?.


Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashMap