File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
JavaCore/src/com/ddb/javacore/collection Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1-
21package 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+
413import java .io .PrintStream ;
514import java .util .ArrayList ;
615import 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 );
You can’t perform that action at this time.
0 commit comments