8000 Signed-off-by: junlizhu <1298561407@qq.com> · 1797890817/JavaBase@546312c · GitHub
[go: up one dir, main page]

Skip to content

Commit 546312c

Browse files
committed
Signed-off-by: junlizhu <1298561407@qq.com>
1 parent 05e0d72 commit 546312c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

JavaCore/src/com/ddb/javacore/collection/ListDemo.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
21
package com.ddb.javacore.collection;
32

3+
import java.io.PrintStream;
4+
import java.util.ArrayList;
5+
import java.util.Iterator;
6+
import java.util.List;
7+
8+
import com.ddb.javacore.ood2.Human;
9+
10+
11+
12+
413
import java.io.PrintStream;
514
import java.util.ArrayList;
615
import java.util.Iterator;
@@ -76,18 +85,12 @@ public static void main(String[] args) {
7685
out.println(strList.subList(1, 4));
7786
out.println("strList.subList(1, 4) : " + strList.subList(1, 4));
7887
out.println("strList.subList(1, 4).toString() : " + strList.subList(1, 4).toString());
79-
//Iterator<String> iterator= strList.iterator();
88+
/* //Iterator<String> iterator= strList.iterator();
8089
while (strList.iterator().hasNext()) {
8190
Object object = (Object) strList.iterator().next();
8291
out.println(object);
83-
}
92+
}*/
8493

85-
/* Iterator<String> iterator= strList.iterator();
86-
while (iterator.hasNext()) {
87-
Object object = (Object) iterator.next();
88-
out.println(object);
89-
}
90-
*/
9194
strList.clear();
9295
out.println("strList.clear() :");
9396
out.println(strList);

0 commit comments

Comments
 (0)
0