private String formatBoolean(boolean b){
  return b ? new String(new byte[]{1}) : "";
}

private String formatBoolean ( boolean b ) { return b ? new String ( new byte [ ] { 1 } ) : "" ; }
returns the string value of the bit 1 if the given boolean is true < br > and an empty string otherwise . this the way bit values are written < br > in . txt dump files .
