华为的内部培训资料。。java.util.Iterator; public class TEST2 extends TEST1 { void outPut(){ Iterator it = (Iterator)list.iterator(); while(it.hasNext()){ TEST1 test1 = (TEST1)it.next(); test1.outPut(); }