0: Amy 1: Bob 2: Deb
isEmpty()
To check if an ArrayList
has elements use
boolean isEmpty()
which returns true
if the ArrayList
has no elements.
To remove all elements from a list, use
void clear()
(Review: ) What algorithm is used to find the first occurrence of a particular element in an array?