or&lt;E&gt; iterator = this.iterator;
  if (!iterator.moveNext()) return &quot;&quot;;
  StringBuffer buffer = StringBuffer();
  if (separator == null || separator == &quot;&quot;) {
    do {
      buffer.write(iterator.current);
    } while (iterator.moveNext());
  } else {
    buffer.write(iterator.current);
    while (iterator.moveNext()) {
      buffer.write(separator);
      buffer.write(iterator.current);
    }
  }
  return buffer.toString();
}</code></pre>
    </section>

  </div> <!-- /.main-content