日期:2014-05-18 浏览次数:20641 次
ArrayList<Person> ar3 = new ArrayList<Person>();
ar3.add(new Person("zhangsan",4));
ar3.add(new Student("lisi",5)); //这里可以添加?
ArrayList<Student> ar4 = new ArrayList<Student>();
ar3.add(new Person("zhangsan",4)); //这里也可以添加?
ar3.add(new Student("lisi",5));