public String toString(){
  ByteArrayOutputStream out=new ByteArrayOutputStream();
  for (int i=0; i < repn.length - 1; i++) {
    out.write(NYBBLE[(repn[i] >> 4) & 0x0F],0,4);
    out.write(NYBBLE[repn[i] & 0x0F],0,4);
    if (i % BYTES_PER_LINE == BYTES_PER_LINE - 1) {
      out.write('\n');
    }
 else {
      out.write(' ');
    }
  }
  for (int i=BITS_PER_UNIT * (repn.length - 1); i < length; i++) {
    out.write(get(i) ? '1' : '0');
  }
  return new String(out.toByteArray());
}

public String toString ( ) { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; for ( int i = 0 ; i < repn . length - 1 ; i ++ ) { out . write ( NYBBLE [ ( repn [ i ] > > 4 ) & 0x0F ] , 0 , 4 ) ; out . write ( NYBBLE [ repn [ i ] & 0x0F ] , 0 , 4 ) ; if ( i % BYTES_PER_LINE == BYTES_PER_LINE - 1 ) { out . write ( '\n' ) ; } else { out . write ( ' ' ) ; } } for ( int i = BITS_PER_UNIT * ( repn . length - 1 ) ; i < length ; i ++ ) { out . write ( get ( i ) ? '1' : '0' ) ; } return new String ( out . toByteArray ( ) ) ; }
returns a string representation of this bitarray .
