实验二做完(喜)
This commit is contained in:
Vendored
+7
-2
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"java.project.sourcePaths": ["src"],
|
||||
"java.project.sourcePaths": [
|
||||
"src"
|
||||
],
|
||||
"java.project.outputPath": "bin",
|
||||
"java.project.referencedLibraries": [
|
||||
"lib/**/*.jar"
|
||||
],
|
||||
"cSpell.words": [
|
||||
"rawtypes"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -16,8 +16,9 @@ public class WalkCollection {
|
||||
while (itr.hasNext()) {
|
||||
System.out.println(itr.next());
|
||||
}
|
||||
|
||||
|
||||
// 使用foreach遍历arrayListExample集合
|
||||
arrayListExample.forEach(System.out::println);
|
||||
// ---------------------End------------------------
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user