Click here to Skip to main content
15,896,063 members

Comments by prashant singh (Top 1 by date)

prashant singh 29-Nov-15 9:32am View    
Deleted
I want to ask that why it is invalid to first we create a array and then assign the value of array in second line like this-
<pre lang="java">int[][] array = new int[3][3];
array={ /*
{1,2,3}, *
{3,4,5}, *invalid
{6,7,8} *
}; */</pre>
why java not support this type of assignation that I do in second line.