public static <X extends Exception>String toString(Iteration<?,X> iter,String separator) throws X {
  StringBuilder sb=new StringBuilder();
  toString(iter,separator,sb);
  return sb.toString();
}

public static < X extends Exception > String toString ( Iteration < ? , X > iter , String separator ) throws X { StringBuilder sb = new StringBuilder ( ) ; toString ( iter , separator , sb ) ; return sb . toString ( ) ; }
converts an iteration to a string by concatenating all of the string representations of objects in the iteration , divided by a separator .
