wood burning stoves 2.0*
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


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

jQuery in Action, 2nd edition
subject: HashMap
Similar Threads
Nested if's
struts 2 s:radio tag
Finding a Specific Object in an ArrayList
WA #1.....word association
switch on String