瀏覽代碼

spliterator iterator methods added to students and instructors

Nick Satinover 6 年之前
父節點
當前提交
00ad0d0957
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      demo/src/main/java/com/example/demo/Instructors.java

+ 2
- 2
demo/src/main/java/com/example/demo/Instructors.java 查看文件

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