aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Don't get me started about those stupid light bulbs.
 
subject: HashMap