ANONYMOUS wrote:
> When i tired to use while loops and array lists todo this task i always ended up with getpage() called too many times error.
>
> however, when i did just:
> StudentListIterator iterator = new StudentListIterator(list);
> return Itertools.reversed(iterator);
>
> it passed the tasks, I'm not sure what I'm missing here.
> Can someone help me?
It turns out that by simple bad luck, the randomly generated tests rolled a 1-in-64 chance and generated a case where all six of the newest students in the list have done "CITS2005". This means that the test can be fooled by just reversing the list. This is *not* a correct solution in general, however. You should not attempt to circumvent the tests in this way.
The previous solution you described is incorrect in a different way. Recall that the instructions say that `StudentListIterator` should only call `getPage()` as required. It sounds like you are calling `getPage()` repeatedly to load the whole list. This is unnecessary.