public class Test05 {
public static void main(String[] args) {
Boolean b1 = new Boolean(true);
Boolean b2 = new Boolean("ok");
Boolean b3 = new Boolean("true");
System.out.println("b1 转换为 boolean 值是:" + b1);
System.out.println("b2 转换为 boolean 值是:" + b2);
System.out.println("b3 转换为 boolean 值是:" + b3);
}
}
欢迎光临 大内高手社区 (https://bbs.tedu.cn/) | Powered by Discuz! X3.4 |