If an array in java is re-sizeable and can contain primitive data types as well as objects, what is the point of an arraylist? Take this array of random ints for example:
int[] intArray = {5, 243, 6766, 2, 23498, 4};
I can add or delete however much I want from this array, so what is the point of an arraylist?