public String toString(){
  StringBuffer sb=new StringBuffer();
  char[] separator={'[',' '};
  int n=rows();
  int m=columns();
  for (int i=0; i < n; i++) {
    separator[0]='{';
    for (int j=0; j < m; j++) {
      sb.append(separator);
      sb.append(components[i][j]);
      separator[0]=' ';
    }
    sb.append('}');
    sb.append('\n');
  }
  return sb.toString();
}

public String toString ( ) { StringBuffer sb = new StringBuffer ( ) ; char [ ] separator = { '[' , ' ' } ; int n = rows ( ) ; int m = columns ( ) ; for ( int i = 0 ; i < n ; i ++ ) { separator [ 0 ] = '{' ; for ( int j = 0 ; j < m ; j ++ ) { sb . append ( separator ) ; sb . append ( components [ i ] [ j ] ) ; separator [ 0 ] = ' ' ; } sb . append ( '}' ) ; sb . append ( '\n' ) ; } return sb . toString ( ) ; }
returns a string representation of the system .
