// 遍历
Iterator it = array.iterator();
while (it.hasNext()) {
Person p = (Person) it.next();
System.out.println(p.getName() + "***" + p.getAge());
}
System.out.println("*********************");
for (int x = 0; x < array.size(); x++) {
Person p = (Person) array.get(x);
System.out.println(p.getName() + "***" + p.getAge());
}