go to previous page   go to home page   go to next page        

Answer:

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()

QUESTION 15:

(Review: ) What algorithm is used to find the first occurrence of a particular element in an array?