public static String toString(boolean[][] m){
  String result;
  if (m == null) {
    result=nullMessage();
  }
 else {
    TextTable textTable=new TextTable(m.length,m[0].length);
    for (int i=0; i < m.length; i++) {
      for (int j=0; j < m[0].length; j++) {
        textTable.setToken(i,j,Boolean.toString(m[i][j]));
      }
    }
    result="\n" + textTable.toString();
  }
  return result;
}

public static String toString ( boolean [ ] [ ] m ) { String result ; if ( m == null ) { result = nullMessage ( ) ; } else { TextTable textTable = new TextTable ( m . length , m [ 0 ] . length ) ; for ( int i = 0 ; i < m . length ; i ++ ) { for ( int j = 0 ; j < m [ 0 ] . length ; j ++ ) { textTable . setToken ( i , j , Boolean . toString ( m [ i ] [ j ] ) ) ; } } result = "\n" + textTable . toString ( ) ; } return result ; }
copies the given array , starting each line with a tab character . .
