Implement the Iterator Pattern
- Declare, specify, and implement Iterable ADTs.
Exercise
In the starter code, open the IteratorExercise class and uncomment the commented code. The uncommented code must be highlighted in red, indicating an error as to myRoster is not iterable. Fix the error.
Solution
Please refer to the posted solution code.