I'm having difficulties understanding why once i declare a multidimensional array like :
int t2[][] = new int[5][10] ;
I can still change the length of the arrays like so :
t2[0] = new int[12];
I thought once we declare the array to be a certain length we can't change it. So how is it possible here ?
int[] t = new int[5]; t = new int[12];.