Iterator it = c.iterator();while(it.hasNext()){ Student stu = (Student) it.next(); System.out.println(stu);}
或
Iterator it = c.iterator();while(it.hasNext()){ Object obj =it.next(); System.out.println(obj);}
四无小青年
程序员大阳
相关分类