title: Java syntax array {1,2,3} vs new int[] {1,2,3}
body: <p>There's something I don't understand with array syntax. For example I can do that :</p>
  <p><code>int[] tab = {1,2,3};</code></p>
  <p>Let's say I have a method that takes an array as a parameter, I can do that:
  <code>myMethod(tab);</code></p>
  <p>But why can't I do that:
  <code>myMethod({1,2,3})</code></p>
  <p>Why do I have to add an extra &quot;new int[]&quot; like this:
  <code>Method(new int[] {1,2,3})</code></p>