Computer Science, asked by krishnanayak59, 1 year ago

difference between next() and hasNext()

Answers

Answered by venkataniveditha1997
0

Answer:

next() returns the next element where as hasNext() returns the true if the iteration has more elements.

Similar questions