//this way u can print your array row by rowfor(int i =0; i < row; i++){for(int j =0; j < column; j++){System.out.println(array[i][j]);}}//this way u can print your array column by columnfor(int i =0; i < column; i++){for(int j =0; j < row; j++){System.out.println(array[i][j]);}}
classMultidimensionalArray{publicstaticvoidmain(String[] args){// create a 2d arrayint[][] a ={{1,2,3},{4,5,6,9},{7},};// calculate the length of each rowSystem.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);}}