protected String toString(String[][] strings){
  int rows=strings.length;
  int columns=strings.length <= 0 ? 0 : strings[0].length;
  StringBuffer total=new StringBuffer();
  StringBuffer s=new StringBuffer();
  for (int row=0; row < rows; row++) {
    s.setLength(0);
    for (int column=0; column < columns; column++) {
      s.append(strings[row][column]);
      if (column < columns - 1)       s.append(columnSeparator);
    }
    total.append(s);
    if (row < rows - 1)     total.append(rowSeparator);
  }
  return total.toString();
}

protected String toString ( String [ ] [ ] strings ) { int rows = strings . length ; int columns = strings . length <= 0 ? 0 : strings [ 0 ] . length ; StringBuffer total = new StringBuffer ( ) ; StringBuffer s = new StringBuffer ( ) ; for ( int row = 0 ; row < rows ; row ++ ) { s . setLength ( 0 ) ; for ( int column = 0 ; column < columns ; column ++ ) { s . append ( strings [ row ] [ column ] ) ; if ( column < columns - 1 ) s . append ( columnSeparator ) ; } total . append ( s ) ; if ( row < rows - 1 ) total . append ( rowSeparator ) ; } return total . toString ( ) ; }
returns a single string representation of the given string matrix .
