arrayList in Java

ArrayList is a implementation of List Interface. 
It is found in the java.util package. 
An ArrayList is an container for objects. An ArrayList cannot contain primitives. 
It uses a dynamic array for storing the elements. It is like an array, but there is no size limit. The default capacity of ArrayList is 10. But unlike array, an ArrayList is growable. It increases the size dynamically whenever we add new element. We can initialize the capacity of ArrayList during the creation of ArrayList.
```
import java.util.*;

public class Main {
    public static void main(String args[]) {
        List<Integer> l1 = new ArrayList<>();
        List<Integer> l2 = new ArrayList<>(10);
        List<Integer> l3 = new ArrayList<>(l2);
    }
}
```