private String formatBooleanValue(boolean val){
  return String.valueOf(val ? 1 : 0);
}

private String formatBooleanValue ( boolean val ) { return String . valueOf ( val ? 1 : 0 ) ; }
formats boolean value into a string one .
