简单类型 / 布尔

var str = "true";
var boolValue = Boolean.parseBoolean(str);
//boolValue is true

System.out.println(
    "boolValue is " + boolValue);