title: How to compare two Hashtables with multiple duplicate values in both
body: <pre class="lang-java prettyprint-override"><code>Hashtable&lt;Integer,String&gt; List1= new Hashtable&lt;&gt;();
  List1.put(1,&quot;A&quot;);
  List1.put(2,&quot;A&quot;);
  List1.put(3,&quot;B&quot;);
  List1.put(4,&quot;C&quot;);
  
  Hashtable&lt;Integer,String&gt; List2= new Hashtable&lt;&gt;();
  List2.put(1,&quot;C&quot;);
  List2.put(2,&quot;C&quot;);
  List2.put(3,&quot;A&quot;);
  List2.put(4,&quot;B&quot;);
  </code></pre>
  <p>I have these two tables how can I compare them and show in percentage how equal they are?
  Assuming these are two Hash tables.
  Ex: <code>List1</code> and <code>List2</code> have 90% of the same values.</p>