how to convert a string to a boolean code example Example: how to convert string to boolean in java boolean bool = Boolean.parseBoolean(str);