HashMap

import java.util.HashMap;
import java.util.Set;
 
 class demohashmap{
 
   public static void main(String args[]){
   
        HashMap hm=new HashMap();
		
		hm.put("a","Bhanu");
		hm.put("b","pratap");
		hm.put("c","singh");
		hm.put("d","sengar");
		hm.put("e","Bhanu");
		hm.put("f","pratap");
		hm.put("g","singh");
		hm.put("h","sengar");
		hm.put("i","1");
		hm.put("j","2");
		hm.put("k","3");
		hm.put("l","4");
		
		
		System.out.println(hm);
		
		
		System.out.println(hm.isEmpty());
		System.out.println(hm.size());
		System.out.println(hm);
		System.out.println(hm.containsKey("i"));
		System.out.println(hm.containsValue("singh"));
		
		
		
		
		
		
		 HashMap hm1=new HashMap();
		
		hm1.put("s","Bhanu");
		hm1.put("t","pratap");
		hm1.put("u","singh");
		hm1.put("v","sengar");
		
		System.out.println(hm1);
		
		hm.putAll(hm1);
		System.out.println(hm);
		
			Set keys=hm.keySet();
			for(String key: keys){
				System.out.println("value of"+key+"is :"+hm.get(key));
			}
		
		
		
   }
 }
		
		
          

Address

Plot number-56/1
Near Gurudwara
LandMark :
Opposite A.N.D college
Govindpuri Metro station
New Delhi
Mobile number:
8826034620