import
java.util.*;
public
class
Hash_Map_Demo {
public
static
void
main(String[] args)
{
LinkedHashMap<String, Integer> li_hash_map =
new
LinkedHashMap<String, Integer>();
li_hash_map.put(
"Geeks"
,
10
);
li_hash_map.put(
"4"
,
15
);
li_hash_map.put(
"Geeks"
,
20
);
li_hash_map.put(
"Welcomes"
,
25
);
li_hash_map.put(
"You"
,
30
);
System.out.println(
"Initial Mappings are: "
+ li_hash_map);
System.out.println(
"Is the key 'Welcomes' present? "
+
li_hash_map.containsKey(
"Welcomes"
));
System.out.println(
"Is the key 'World' present? "
+
li_hash_map.containsKey(
"World"
));
}
}