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
it's the scope of object problem. every iteration has its scope let's say they are not the same object at all