
0 1 2 3 4 5 6 7 8 9 can i have the code for this. the one i had is
class ArrayDemo { public static void main(String... s) { int twoD[][] = new int[4][]; twoD[0] = new int[4]; twoD[1] = new int[3]; twoD[2] = new int[2]; twoD[3] = new int[1]; int i,j,k = 0;
for(i=0;i<4;i++) for(j=i;j<4;j++) { twoD[i][j] = k; k++; }
for(i=0;i<4;i++) { for(j=0;j