标签:asn iter iterator str out print rgs util []
import java.util.ArrayList;
import java util.Iterator;
import java util.List;
public class IteratorDemo01{
public static void main (string [] args){
List<String >all=new ArrayList<String>();
all.add("hellow");
all.add("_");
all.add("world");
Iterator<String>iter=all.iterator();
while(iter.hasNext()){
System.out.print(iter.next()+".")
}
}
标签:asn iter iterator str out print rgs util []
原文地址:https://www.cnblogs.com/l2760186162/p/10809531.html