How it works...

The map is a pairing between a key and value. The keys reference the values when calling the instance of Map  methods. This pairing is one-to-one; this means that there can only be one value per key. Thus, when we set another rocket to the KENNEDY_SPACE_CENTER key, the old value is replaced.

The delete method removes the entry corresponding to the key. Thus, after delete, that particular entry is undefined.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.234.105