实验二做完(喜)

This commit is contained in:
2024-06-11 00:47:52 +08:00
parent 9b5aac99c9
commit 1a645df671
2 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -16,8 +16,9 @@ public class WalkCollection {
while (itr.hasNext()) {
System.out.println(itr.next());
}
// 使用foreach遍历arrayListExample集合
arrayListExample.forEach(System.out::println);
// ---------------------End------------------------
}
}