Thursday 22 January 2015

how to How to use ArrayList in java

import java.util.ArrayList;


public class ArrayListExample {

    public static void main(String[] args) {
   
        ArrayList<String> name=new ArrayList<String>();
        name.add("Dx");
        name.add("Ravi");
        name.add("mitul");
        name.add("Dhaval");
        name.add("Bittu");
               
      
            System.out.println(name);        
      
     
    }

}

No comments:

Post a Comment

How to change Background color by selecting color from Listview

activitymain.xml file::> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xm...