title: How to subtract two Maps in Java?
body: <p>I have two Maps Collection with pairs ,say,
  Consider Values as List Of Integers.
  ie, for Map1,key=1,values =array list with (2,3)</p>
  
  <pre><code>Map1       Map2
  &lt;1,2&gt;      &lt;1,2&gt;
  &lt;1,3&gt;      &lt;1,4&gt;
  &lt;2,4&gt;      &lt;2,5&gt;
  &lt;2,5&gt;      &lt;2,6&gt;
  </code></pre>
  
  <p>Now i want results as Map1-Map2 : </p>
  
  <pre><code>&lt;1,3&gt;
  &lt;2,5&gt;
  </code></pre>
  
  <p>or Map2-Map1: </p>
  
  <pre><code>&lt;1,4&gt;
  &lt;2,6&gt;
  </code></pre>
  
  <p>Is there a similar method like RemoveAll in ArrayLists for Maps ? Also, which Map(SortedMap?) would be the best way to achieve this ?</p>
  
  <p>I'm a beginner If you could guide me in right direction than down voting , it would be great .</p>