How can i combine two hashMap objects of same type in Java
<p>Ok so lets say i have two hasMaps defined like:</p>

<pre><code>    HashMap&lt;String, Integer&gt; map1 = new HashMap&lt;String, Integer&gt;();
    HashMap&lt;String, Integer&gt; map2 = new HashMap&lt;String, Integer&gt;();
</code></pre>

<p>and i have a 3rd HashMap Object:</p>

<pre><code>    HashMap&lt;String, Integer&gt; map3;
</code></pre>

<p>How can i merge map1 and map2 together in map3. What command should i use?</p>
