Hi,
I didnt understand three - D arrays concept.
Give me some explanation regardign three - D array concept.
Please explain abt this question's output:
1. public class
Test {
2. public static void main(
String [] args) {
Self Test 49
3. int [] [] [] x = new int [3] [] [];
4. int i,j;
5. x[0] = new int[4][];
6. x[1] = new int[2][];
7. x[2] = new int[5][];
8. for (i=0; i<x.length; i++)
9. for (j=0; j<x[i].length; j++) {
10. x[i][j] = new int [i + j + 1];
11. System.out.println("size = " + x[i][j].length);
12. }
13. }
14. }
Thanks.