var str = "true";var boolValue = Boolean.parseBoolean(str);//boolValue is trueSystem.out.println( "boolValue is " + boolValue);