Java - Help with arrays plz

<p>int list = new int[ARRAY_SIZE];
list = { 42,468,335,1,170,225,479,359,463, 465,206,146,282,329,462,492,496,443,328,437};</p>

<p>When I compile the program with the above array declaration, I get this error:
illegal start of expression</p>

<p>Does anybody know how to fix this?</p>

<p>Instead of having the declaration and setting the size, you just have to declare list like:</p>

<p>int list = { 42,468,335,1,170,225,479,359,463, 65,206,146,282,329,462,492,496,443,328,437};</p>

<p>Or you can loop through the array inputting each value if you need to use an array size variable.</p>