posted 15 years ago
in hasNext :
This is always going to be true, isn't it ?
In next(), you never increase the current index.
I'm not sending the code, but just giving you some hints :
1. in hasNext, use the index to check whether it has reached the size of the array, or to check whether the current item is null
2. in next, increase the index