3839404142434445
ArrayList list = new ArrayList(); public ClassWithPrivateWriteAndRead() { for (int i=0;i<10;i++) { list.add(new Child()); } }
53545556575859606162636465
{ myTest.map.put("key" + i,"value" + i); } Child child = new Child(); myTest.setChild(child); child.setParent(myTest); System.out.println("MyTest(original) = " + myTest); TestParent myTest2 = new TestParent(0); myTest2.setA(34);