How can I use { } notation to create an array?
<p>I can create an array holding four elements:</p>

<pre><code>int[] nums3 = new int[4];
nums3[0] = 10;
nums3[1] = 20;
nums3[2] = 30;
nums3[3] = 40;
</code></pre>

<p>How would I create the same array using <code>{}</code> notation?</p>
