ArrayList is a resizable array, which can be found in the java.util package.
Source Code
ArrayList cars = new ArrayList();
cars.add("Volvo");
cars.add("BMW");
cars.add("Ford");
System.out.println(cars);
Use ArrayList when you need a dynamic array whose size can change.