How to compare the values in both hash maps with the help of keys ? Since the keys are identical whereas values are\'nt. and return boolean result for each key comparision. like
Pseudo Code:
HashMap map1; HashMap map2; HashMap resultMap; for(KeyType key : map1.keySet() ) { if(map1.get(key).equals(map2.get(key)){ resultMap.put(key,true); } else { resultMap.put(key,false); }
}