Javatpoint Logo
Javatpoint Logo

Java IdentityHashMap values() method

The values() method of the Java IdentityHashMap class is used to get a collection view of all the values present in the calling IdentityHashMap.

Syntax

Return

A collection containing all the values present in the map

Example 1

Test it Now

Output:

6
{1=Java, 3=the, 6=language, 5=programming, 4=best, 2=is}
[Java, the, language, programming, best, is]

Example 2

Test it Now

Output:




Help Others, Please Share

facebook twitter pinterest