import java.util.ArrayList;
public class Test3 {
public static void main(String[] args){
method();
}
public static void method(){
ArrayList a1 = new ArrayList();
a1.add("java 01");
a1.add("java 02");
a1.add("java 03");
a1.add("java 04");
Iterator it = a1.iterator();//运行时这里显示错误
while(it.hasNest()){
System.out.println(it.nest());
}
}
}
|