Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
switch on String
Finding a Specific Object in an ArrayList
WA #1.....word association
struts 2 s:radio tag
Nested if's