The addString() method belongs to the concrete value members of the class AbstractIterator. It is defined in the class IterableOnceOps. It is utilized to append the elements of the Scala Iterator to a String Builder.
Method Definition : def addString(b: StringBuilder): StringBuilder
Return Type : It returns the String Builder to which the elements were appended.