title: How to Compare values of a single hashMap, without using other collections
body: <pre><code>m.put("A", al); 
  m.put("B", al1);
  m.put("C", al2);
  </code></pre>
  
  <p>I want to compare all the values of this HashMap. This is the HashMap with the <code>String</code> type keys and <code>ArrayList&lt;Integer&gt;</code> type values.</p>
  
  <p>I don't want to use other collection type.</p>
  
  <hr>
  
  <pre><code>        Integer a[] = { 1, 2, 3, 4 };
          Integer b[] = { 1, 2, 3, 4 };
          Integer c[] = { 9, 5, 3, 7 };
          Integer d[] = { 1, 2, 3, 2};
          List&lt;Integer&gt; l = Arrays.asList(a);
          List&lt;Integer&gt; m = Arrays.asList(b);
          List&lt;Integer&gt; n = Arrays.asList(c);
          List&lt;Integer&gt; o = Arrays.asList(d);
          Map&lt;String, List&lt;Integer&gt;&gt; m1 = new HashMap&lt;String, List&lt;Integer&gt;();
          m1.put("A", l);
          m1.put("B", m);
          m1.put("C", n);
          m1.put("D", o);
  </code></pre>
  
  <p>This is my hashmap m1, and each key has an ArrayList of elements, as we know key "A" and Key "B" both have same elements
              A- {1,2,3,4} and B- {1,2,3,4} and rest of other Keys have different-different elements. so what i want is, to get  all the keys having 
              same  elements. for example Key A and Key B both have same elements so i want to print A and B. and the Size should be same for all the Keys 
              here size is 4 for all the hasmap keys</p>