if you have two hashtable,


Hashtable hashTable1 = new Hashtable();
Hashtable hashTable2 = new Hashtable();

then you can compare using,


for (Map.Entry<Integer, Integer> htEntries :...