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
You can take keys of one map (with keySet() method), iterate through them, get values from both maps (with get() method), and compare them.
Also, you can use values() method to get all key-value pairs form one map, iterate through it and compare values with values from another map.