Next:
Replace Elements
Up:
Methods of HashMap
Previous:
Access HashMap Elements
Contents
Remove Elements
remove(key)
- returns and removes the entry associated with the specified key from the map.
remove(key, value)
- removes the entry from the map only if the specified key mapped to the specified value and return a boolean value.
Output