check if an item exists in a java hashmap code example Example: if key exists in hashmap java Hash_Map.containsKey(key_element)