Originally posted by asanka vithanage:
when i create a array like follos
int [][][] b=new int[1][][];
how can i assign to this array
please give all the posible ways
Well, b is an array to arrays to arrays of int. so, you can assign arrays of arrays of ints to the elements of the b array, since the elements of that array are arrays of arrays of ints.
b[0] = new int[10][12];
And you can assign arrays of ints to the elements of the elements of the b array, since those elements are arrays of ints.
b[0][5] = new int[42];
And you can assign ints to those elements, since those elements are arrays of ints.
b[0][5][23] = 56;
Henry