import
java.util.*;
public
class
Identity_Hash_Map_Demo {
public
static
void
main(String[] args)
{
Map<String, Integer> identity_hash =
new
IdentityHashMap<String, Integer>();
identity_hash.put(
"Geeks"
,
10
);
identity_hash.put(
"4"
,
15
);
identity_hash.put(
"Geeks"
,
20
);
identity_hash.put(
"Welcomes"
,
25
);
identity_hash.put(
"You"
,
30
);
System.out.println(
"The Mappings are: "
+
identity_hash);
System.out.println(
"Is the map empty? "
+
identity_hash.isEmpty());
}
}