import
java.util.*;
public
class
Identity_Hash_Map_Demo {
public
static
void
main(String[] args)
{
IdentityHashMap<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(
"Initial Mappings are: "
+
identity_hash);
System.out.println(
"Is the key 'Welcomes' present? "
+
identity_hash.containsKey(
"Welcomes"
));
System.out.println(
"Is the key 'World' present? "
+
identity_hash.containsKey(
"World"
));
}
}