The list of methods to do Map Put are organized into topic(s).
void
put(Map map, String keyValuePair) Adds an entry to a
Map .
int posOfSep = keyValuePair.indexOf('=');
if (posOfSep == -1)
throw new IllegalArgumentException("Invalid keu-value specification: " + keyValuePair);
String key = keyValuePair.substring(0, posOfSep);
String value = keyValuePair.substring(posOfSep + 1);
map.put(key, value);
V
put(Map aMap, K aKey, V aValue) Adds given key and value to given map (removes key if value is null).
if (aValue == null)
return aMap.remove(aKey);
return aMap.put(aKey, aValue);
void
put(Map map, K key, V value) Associates the specified value with the specified key in this map.
if (map != null) {
map.put(key, value);