2D Arrays: Creation and Access

AP Computer Science A· difficulty 3/5

For 2D array <code>m</code>, number of rows is given by

  • A

    m.size()

  • B

    m.length()

  • C

    m[0].length

  • D

    m.length

    check_circle

Explanation

<code>m.length</code> is row count; <code>m[i].length</code> is column count of row i.

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

Related questions