You should be able to remove the entry with:
Map.remove(key)
More Related Contents:
- Get List<K> from HashMap<K, V> where V is instance of I [closed]
- How to check if an integer is in a set of given ranges? [closed]
- Java 8 Streams hashmap
- How does a Java HashMap handle different objects with the same hash code?
- Java Compare Two Lists
- java.lang.OutOfMemoryError: GC overhead limit exceeded [duplicate]
- “Cannot create generic array of ..” – how to create an Array of Map?
- Java HashMap performance optimization / alternative
- Reverse HashMap keys and values in Java
- Best way to create a hashmap of arraylist
- Remove Elements from a HashSet while Iterating [duplicate]
- ArrayList as key in HashMap
- What is the time complexity of HashMap.containsKey() in java?
- How to prove that HashMap in java is not thread-safe
- What exactly is bucket in hashmap?
- Changing HashMap keys during iteration
- Java HashMap – deep copy
- When and how does HashMap convert the bucket from linked list to Red Black Trees? [duplicate]
- Loading a map using Properties class
- How can I sort Map values by key in Java?
- Accessing the last entry in a Map
- How to calculate HashMap memory usage in Java?
- Shortcut for adding to List in a HashMap
- Why Hashtable does not allow null keys or values?
- How does ConcurrentHashMap work internally?
- Comparing two hashmaps for equal values and same key sets?
- Hashmap vs Array performance
- How to convert a string to a HashMap? [duplicate]
- How do I access nested HashMaps in Java?
- Explanation of HashMap#hash(int) method