add method
Adds a single entry to the map.
This method adds the entry
to the map. If the key already exists in the map, its value will be updated.
entry
The MapEntry to be added to the map.
Implementation
void add(MapEntry<K, V> entry) {
this[entry.key] = entry.value;
}