ArrayList Class in JAVA JAVA by Ravinder Nath Rajotiya - April 18, 20210 ArrayList class in JAVA We have already seen that arrays are of a fixed length and after they are created, they cannot grow or shrink. This meant the the programmer must know in advance about the size requirement of an array. ArrayList like arrays also allow object storage, but unlike array, the arrayList are created with an initial size, the arrayList collection is automatically enlarged when object are added and it automatically get shrunk when objects are removed from the arrayList. There is a class ArrayList to which is in java.util.* package. You always work with ArrayList Object which you pass it to it as: ArrayList<Integer> // Use class names as Integer, remember you cannot use primitive data type as int ArrayList<String> names = new