Scala Iterator toString() method with example
The toString() method belongs to the concrete value member of the class Abstract Iterator. It is utilized to convert the stated iterator to a string.
Method Definition: def toString(): String
Return Type: It returns a string from the stated iterator.
In above example, iterator is empty so produced result is also empty iterator.