public class twoDarray1 { static int[][] tableArray = new int[3][]; public static void main(String[] args) { tableArray[0] = new int[3]; tableArray[1] = new int[4]; tableArray[2] = new int[5]; for(int i = 0; i<3; i++) fillArray(i,i+3); System.out.println(); } public static void fillArray(int row, int col){ for (int i=0; i<col; i++) tableArray[row][i] = i; for (int i = 0; i<col; i++) System.out.print(tableArray[row][i]+ "\t"); System.out.println(" "); } }