ArrayList Methods
Learn the basic ArrayList methods.
This section lists some common methods of an ArrayList
class. We’ll cover them one by one in detail.
Add items
Variation I
We use the add(E e)
method to add elements to the ArrayList
. It takes an element, e
, of E
type, appends it to the end of the list, and returns true
.
Get hands-on with 1400+ tech skills courses.