Map interface in java
Map interface: A map represents an object with key-value pair. A map cannot contain duplicate keys and one key can map to at most one value. Commonly used methods of Map interface: 1. clear(): Removes all key-value pairs from this map. Syntax: public void clear() 2. containsKey(Object k): Returns true if this map contains specified … Read more