Retrieve the value associated with a specific entry in a map.
import public |
The get() method returns the value associated with a specified key in the map.
public |
V represents the data type of the values within the map.
Parameter |
Description |
key |
Required: Specifies the key of the entry from which to retrieve the value. |
Returns: |
It returns the value of the entry with the specified key, or null if there is no entry with that key. |