A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Write a program of ArrayList in java

import java.util.ArrayList;
import java.util.LinkedList;

/**
 *
 * @author heerababu
 */
public class ArrayLIst {
    public static void main(String args[])
    {
      
        ArrayList al=new ArrayList();
        al.add(10);
        al.add(11);
        al.add(13);
        System.out.println(al);
    }
   
}


Output:



LEARN TUTORIALS

.

.