What if iterator moves more times than no.of elements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What if iterator moves more times than no.of elements?

27th Mar 2016, 5:38 AM
Rhunal Sawant
Rhunal Sawant - avatar
1 Answer
+ 2
NoSuchElementException will be thrown.
17th Apr 2016, 8:20 PM
Miro Ivan
Miro Ivan - avatar