The map.values() method is used to return anew Iterator object that contains the value of each element present in Map. The order of the values are in the same order that they were inserted into the map.
Parameters: This method does not accept any parameters.
The examples below illustrate the values() method:
Please Login to comment...