posted 15 years ago
int[][] multiAnonymousArray = new int[][]{new int[]{23,6667,85,42},new int[]{15,87,65,787,877,65},new int []{54,78,787,51,54,32,56},new int[]{0,205,454,454,5847,4305}};
for(int i = 0; i < multiAnonymousArray.length; i++){
for(int j = 0; j < 4 ; j++){// out of bounds exception if j < 5
System.out.print(multiAnonymousArray[j]);
System.out.print("\t");
}
System.out.print("\n");
}
[I]For the code mentioned above,
I am getting the output as
2366678542
158765787
547878751
0205454454
But,
I have to get the output as2366678542
158765787877 65
54787875154 32 56
02054544545847 4305
Why I am not able to get my output
Is there any other way to get my output
Regards,<br />Pradeep Balasubramanian<br /> <br />You have to grow from the inside out. None can teach you, none can make you spiritual. There is no other teacher but your own soul. <br /> <br />- Swami Vivekananda