ArrayList Methods

AP Computer Science A· difficulty 2/5

Number of elements in ArrayList:

  • A

    list.length()

  • B

    list.length

  • C

    list.count

  • D

    list.size()

    check_circle

Explanation

<code>size()</code> for ArrayList; <code>length</code> for array; <code>length()</code> for String.

Want 10 more like this — adaptive to your weak spots?

Related questions