import java.util.ArrayList; import java.util.ListIterator; public class ArrayListDemo { public static void main(String args[]) { // create an array list ArrayList al = new ArrayList(3); System.out.println("Initial size of al: " + al.size()); // add elements to the array