In Java, 2D arrays are stored as arrays of arrays. Therefore, the way 2D arrays are declared is similar 1D ... for(int j = 0; j < matrix[i].length; j++) {.
確定! 回上一頁