Is it possible to initialise an array in Java using the 'advanced' for loop?
e.g.
Integer[ ] numbers = new Integer[20];
int counter = 0;
for ( Integer i : numbers )
{
i = counter++;
}
for ( Integer i : numbers )
{
System.out.println(i);
}
This prints all nulls, why is that?