public static boolean booleanValue(String s) {
	boolean b = false;
	if (s != null) {
	    if (s.equalsIgnoreCase("yes")) {
		b = true;
	    } else {
		b = Boolean.valueOf(s).booleanValue();
	    }
	}
	return b;
    }
public static boolean booleanValue ( String s ) { boolean b = false ; if ( s != null ) { if ( s . equalsIgnoreCase ( "yes" ) ) { b = true ; } else { b = Boolean . valueOf ( s ) . booleanValue ( ) ; } } return b ; }
Convert a String value to 'boolean'.
Besides the standard conversions done by
Boolean.valueOf(s).booleanValue(), the value "yes"
(ignore case) is also converted to 'true'.
If 's' is null, then 'false' is returned.

@param s the string to be converted
@return the boolean value associated with the string s