Why we can not assign value to array like this-
int array[][]=new int[3][3];
array[][]={
{1,2,3},
{4,5,6},
{7,8,9}
};
why we need to assign value separately like this
array[0][0]=1;
array[0][1]=2;
array[0][2]=3;
.....
.....
why java only support assignation all value to array at the time of declaration of array like this only-
int array[][]=new int[][]{
{1,2,3},
{4,5,6},
{7,8,9}
};