Can an ArrayList contain objects?

An ArrayList is just an object, so we will create it like any other object – calling “new” and storing a pointer to the new ArrayList. When first created, the ArrayList is empty – it does not contain any objects . Traditionally, the things stored inside of a collection are called “elements” in the collection.

Read more