How to Add Objects to an ArrayList

How to add objects to an ArrayList

How to add user defined objects to an ArrayList ? ArrayList is from java.util package. This is like an expandable array. Whenever elements are added, the list will expand and when you remove elements the list will shrink. To add elements to an ArrayList, we have to use void add(Object

Continue reading