ArrayList

import java.util.*;
public class demoArrayList{
    public static void main(String args[]){
	 ArrayList ll=new ArrayList();
 
	
		 //1) add element
		 ll.add("a");
		 ll.add("b");
		 ll.add("c");
		
		
		 
		 
		 //2) to print output
		 System.out.println(ll);
		 //3) to find vale at any index
		System.out.println(ll.get(2));
		// to cehck element in list
		 System.out.println(ll.contains("b"));
		 //to check size()
		System.out.println(ll.size());
		//to check it is empty or full
		 System.out.println(ll.isEmpty());
		 System.out.println(ll.indexOf("b"));
		 
		 ArrayList ll2=( ArrayList)ll.clone();
		 System.out.println(ll2);
		 
		 
		 ArrayList ll3=new ArrayList();
		 ll3.add("d");
		 ll3.add("e");
		 ll3.add("f");
		// ll3.add("a");
		 System.out.println(ll3);
		 
		 
		 
		 
		 ll.addAll(ll3);
		 System.out.println(ll);
		 
		 
		 ll2.clear();
		 
		 
		 System.out.println(ll2);
		 
		 List ll4=ll.subList(0,1);
		 System.out.println(ll4);
	     System.out.println("Before suffle");
	     System.out.println(ll);
		 System.out.println("after suffle");
	     Collections.shuffle(ll);
		 for(String aa:ll){
			 System.out.println(aa);
		 }
		 
		 
		 
		 
		 System.out.println(ll.retainAll(ll3));

	 }
	 }
          

Address

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