So I went over this block of code several times in a book that I'm reading:
int[][] someArray = new int[size][];
for(int i=0; i<size; i++)
someArray[i] = new int[size];
I don't see any difference between that and the following declaration:
int[][] someArray = new int[size][size];
Did I miss anything here? Is there any reason why I should use the long block of code above?
Thanks,