posted on 2006-05-22 16:41 sters 阅读(351) 评论(1) 编辑 收藏
没有碰到这个问题 import java.util.ArrayList; import java.util.Iterator; public class test { public static void mian(String []arg) { ArrayList list=ArrayList(); list.add(new o()); Iterator iterator=list.iterator(); while(iterator.hasNext()) { o g=(o)iterator.next(); g.print(); } } } class o { public o() { } public void print() { System.out.println("ssss"); } } 回复 更多评论
Powered by: BlogJava Copyright © sters