How to implement ArrayList with Array in Java
ArrayList is similar to Object Array but provides the feature of dynamic space allocation when the number of objects in the list grows. In Object Array we need to provide the size at the time of initialization but that is not required for ArrayList. Actually when you initialize ArrayList, it automatically assigns its capacity to 10.
Here I am trying to implement ArrayList with Object Array and provide basic functions i.e get(index), add(object) and remove(index).