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