Be sure that the getIterator method returns an anonymous class.
Transfer the LocalIterator logic to an anonymous class.
Only change the body of the getIterator method.
Refactoring, anonymous classes
- 13
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Justin Smith
14 January 2022, 18:10
The next() method is the tricky part, although the solution is actually quite simple once you get it.
0