public static boolean parseBooleanParam(String value){
  if (value == null) {
    return false;
  }
  if (value.equalsIgnoreCase("false") || value.equals("0")) {
    return false;
  }
  return true;
}

public static boolean parseBooleanParam ( String value ) { if ( value == null ) { return false ; } if ( value . equalsIgnoreCase ( "false" ) || value . equals ( "0" ) ) { return false ; } return true ; }
parse a boolean query parameter value unlike boolean . parseboolean this will treat any value except null , false and 0 as true .
