Compruebe si una entrada en Hashmap se elimina en Java
Object removedObject = myMap.remove(1);
boolean wasRemoved = removedObject != null;
Shubhangi_Mishra
Object removedObject = myMap.remove(1);
boolean wasRemoved = removedObject != null;