10黑马币
最佳答案public static void main(String[] args) {
ArrayList list = new ArrayList();
list.add(new Person("德玛",60));
list.add(new Person("德邦",23));
list.add(new Person("皇子",28));
list.add(new Person("剑圣",53));
list.add(new Person("诺克",30));
Person p =new Person();
ListIterator it = list.listIterator();
int max = list.get(0).getAge();
p = list.get(0);
for (Person person : l ...
| |
| |