Question: how to fetch value from hashmap?
Answer: Convert Hashmap to MapSet to get set of entries in Map with entryset() method.: Set st = map. ...  Get the iterator of this set: Iterator it = st. ...  Get Map. ...  use getKey() and getValue() methods of the Map.