How to print of length of int[][] arr=new int[row][col] where int row=4 and int col=2

how to individually print the length of row and col. explain this statement arr[row].length in this question in display function part.