0. What assignment statement sets close to the number of columns in row 1 of a two dimensional array? int cols = grid[1].length; int cols = grid[1][2]; int cols[1] = grid.length; int cols[1] = grid.size; code example
Example: 2d array java
int[][]arr= new int [filas][columnas];
arr.length=filas;
int[][] a = {
{1, 2, 3},
{4, 5, 6, 9},
{7},
};
System.out.println("Length of row 1: " + a[0].length);
System.out.println("Length of row 2: " + a[1].length);
System.out.println("Length of row 3: " + a[2].length);
}