Browse Source

spliterator iterator methods added to students and instructors

Nick Satinover 6 years ago
parent
commit
00ad0d0957
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      demo/src/main/java/com/example/demo/Instructors.java

+ 2
- 2
demo/src/main/java/com/example/demo/Instructors.java View File

@@ -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
 }