Which of these compile when replacing line 8?
Choose all that apply
7: ArrayList l = new ArrayList(); 8: // INSERT CODE HERE
capacity()
length()
size()
Click to view the answer
F.
The ArrayList class defines a method called size().