I don\'t understand why this works and I hope somebody can explain it to me. Here is an example:
TestObject array[] = new TestObject[10]; for(int i= 0; i <= 1
Every iteration of a loop is a block and, as a block, has its own scope. You can achieve the same result by doing this:
{ int i = 0; } { int i = 1; } // etc