How to compare value or keys in the hash table?
<p>Suppose I have code </p>

<pre><code>public static void main(String args[])
{
    Hashtable ht = new Hashtable();
    Hashtable ht2 = new Hashtable();
    for(int i=0;i&lt;100;i++)
    {
        ht.put(i, new Integer (i));
    }
    for(int i=50;i&lt;100;i++)
    {
        ht2.put(i, new Integer (i));
    }
}
</code></pre>

<p>If I wanted to compare the two different hashtable, how would I go about to do this in Java? EDIT: if I wanted to compare key or the actual value in the hashtable</p>
