SyntaxFix
Write A Post
Hire A Developer
Questions
You just use the method
public Object put(Object key, Object value)
if the key was already present in the Map then the previous value is returned.