private String isInputChecked(String dataSet,String value){
  if (dataSet != null && dataSet.equals(value)) {
    return " checked";
  }
  return "";
}

private String isInputChecked ( String dataSet , String value ) { if ( dataSet != null && dataSet . equals ( value ) ) { return " checked" ; } return "" ; }
returns a string which indicates if the input was checked in a submitted form .
