Traverse all elements of <code>int[][] m</code> row-by-row:
- A
for (int j = 0; j < m[0].length; j++) for (int i = 0; i < m.length; i++) ...
- B
for-each on m only
- Ccheck_circle
for (int i = 0; i < m.length; i++) for (int j = 0; j < m[i].length; j++) ...
- D
for (int i = 0; i < m.length; i++)
Explanation
Standard pattern: outer rows, inner columns.