119k views
5 votes
What is the proper way to get the number of items in an ArrayList called list?

answer choices
a. list.length
b. list.size
c. list.length()
d. list.size()

User Jackhab
by
7.4k points

1 Answer

5 votes

Answer:

d. list.size()

Step-by-step explanation:

In java you can use the size method to get the amount of elements inside an ArrayList

User Dispersia
by
7.7k points