1import java.util.*;
2class Check
3{
4 public static void main(String arg[])
5 {
6 HashMap<Integer, String> hm=new HashMap<Integer, String>();
7
8 hm.put(17,"abhishek");
9
10 hm.put(50,"ajith");
11
12 hm.put(71,"alekhya");
13
14 hm.put(11,"amani");
15
16 String s=hm.get(50); //s="ajith";
17
18 System.out.println(s);
19
20 s=hm.get(11); // s="amani";
21
22 System.out.println(s);
23 }
24}
25