Java IdentityHashMap entrySet() method

The entrySet() method of the Java IdentityHashMap class is used to get a set view of all the key-value pairs present in the calling IdentityHashMap.

Syntax

Return

A set view of all the key-value pairs present in the calling IdentityHashMap.

Example 1

Output:

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

Example 2

Output: