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