Ver código fonte

spliterator iterator methods added to students and instructors

Nick Satinover 6 anos atrás
pai
commit
00ad0d0957

+ 2
- 2
demo/src/main/java/com/example/demo/Instructors.java Ver arquivo

@@ -17,7 +17,7 @@ public class Instructors extends People<Instructor> {
17 17
 
18 18
     @Override
19 19
     public Iterator iterator() {
20
-        return null;
20
+        return this.personList.iterator();
21 21
     }
22 22
 
23 23
     @Override
@@ -27,6 +27,6 @@ public class Instructors extends People<Instructor> {
27 27
 
28 28
     @Override
29 29
     public Spliterator spliterator() {
30
-        return null;
30
+        return this.personList.spliterator();
31 31
     }
32 32
 }