AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

ArrayList Size Method

APCSA-E1IEDF

Which line of code can be used to find the number of elements in the ArrayList students?

A

students.length();

B

students.size;

C

students.length;

D

students.size();

E

students.getSize();