实验二做完(喜)

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
+7 -2
View File
@@ -1,7 +1,12 @@
{ {
"java.project.sourcePaths": ["src"], "java.project.sourcePaths": [
"src"
],
"java.project.outputPath": "bin", "java.project.outputPath": "bin",
"java.project.referencedLibraries": [ "java.project.referencedLibraries": [
"lib/**/*.jar" "lib/**/*.jar"
],
"cSpell.words": [
"rawtypes"
] ]
} }
+2 -1
View File
@@ -16,8 +16,9 @@ public class WalkCollection {
while (itr.hasNext()) { while (itr.hasNext()) {
System.out.println(itr.next()); System.out.println(itr.next());
} }
// 使用foreach遍历arrayListExample集合 // 使用foreach遍历arrayListExample集合
arrayListExample.forEach(System.out::println);
// ---------------------End------------------------ // ---------------------End------------------------
} }
} }