code: public String contentToString()
      {
          StringBuffer sb = new StringBuffer();
          sb.append(name + " = \n");
          
          if ( getSize() > 1000 )
          {
              sb.append("Cannot display variables with more than 1000 elements.");
              return sb.toString();
          }
          for ( int m = 0; m < getM(); m++ )
          {
             sb.append("\t");
             for ( int n = 0; n < getN(); n++ )
             {
                 sb.append( getReal(m,n) );
                 if ( isComplex() )
                 {
                     sb.append("+" + getImaginary(m,n) );
                 }
                 sb.append("\t");
             }
             sb.append("\n");
          }
          return sb.toString();
      }
docs: /* (non-Javadoc)
  @see ca.mjdsystems.jmatio.types.MLArray#contentToString()