ArrayList Methods

AP Computer Science A· difficulty 3/5

<code>list.indexOf(7)</code> returns

  • A

    Always returns true/false

  • B

    Throws exception

  • C

    First index of 7, or -1 if not present

    check_circle
  • D

    Number of 7s

Explanation

Same convention as String.indexOf.

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

Related questions