📅  最后修改于: 2022-03-11 14:52:18.899000             🧑  作者: Mango
List list = new ArrayList><();
list.add("one");
list.add("two");
list.add("three");
Iterator iterator = list.iterator();
while(iterator.hasNext()) {
String element = iterator.next();
System.out.println( element );
}