Boolean.parseBoolean

Parses the string argument as a bool. The {@code bool} returned represents the value {@code true} if the string argument is not {@code null} and is equal, ignoring case, to the string {@code "true"}. <p>

class Boolean
static
bool
parseBoolean
(
string s
)

Examples

{@code Boolean.parseBoolean("True")} returns {@code true}.<br> {@code Boolean.parseBoolean("yes")} returns {@code false}.

@param s the {@code string} containing the bool representation to be parsed @return the bool represented by the string argument

Meta