Which method in the ArrayList class can be used to get or set the number of elements

Question:

Which method in the ArrayList class can be used to get or set the number of elements that an ArrayList can contain?

a. Length( )

b. Size( )

c. Dimension( )

d. Rank( )

e. Capacity( )

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: