Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JUnit tests: https://www.cse.buffalo.edu/~mhertz/courses/cse116/Weeks/DirWeek07/

ID: 3730420 • Letter: J

Question

JUnit tests: https://www.cse.buffalo.edu/~mhertz/courses/cse116/Weeks/DirWeek07/Problem01.jar

Download this file in which I started to define a very special Iterator. Instances of this class will return the POSITIVE entries in source. Your class will still use the same Iterator algorithms for its hasNext) and next) methods, BUT you will need to advance cursor to the next entry with a POSITIVE value (and not just the next entry). For this question, you will also need to write the class constructor

Explanation / Answer

I have competed PositiveFilterIterator class. Now All the test cases are passing in Problem01.jar