next
Takes the next item from this iterator. This method will return null if no more items are available.
Example:
val item = iterator.next()
if (item == null) {
// End of iterator reached.
}
Content copied to clipboard
Takes the next item from this iterator. This method will return null if no more items are available.
Example:
val item = iterator.next()
if (item == null) {
// End of iterator reached.
}