java 8 map how to check if key exists code example Example: if key exists in hashmap java Hash_Map.containsKey(key_element)