System.Out.Println("loop-cycle:" + anInt1161);
Capital O should be lower case.
SyStem.out.println("psize:" + anInt1007);
Second S in System should be lower case.
If these don't fix it, post the errors so we can get an idea of whats wrong. It's hard to diagnose it when we don't get to see the symptoms.