📜  java string to boolean - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:18.743000             🧑  作者: Mango

代码示例1
String value = "true"; 
boolean b = Boolean.parseBoolean(value); 
System.out.println(b);

Read more: https://www.java67.com/2018/03/java-convert-string-to-boolean.html#ixzz6HF3C1ERb