扫码下载编程狮APP
The static method valueOf parses a String to a Boolean object: public static Boolean valueOf (String string)
The static method valueOf parses a String to a Boolean object:
public class MainClass { public static void main(String[] args) { Boolean b = Boolean.valueOf("true"); System.out.println(b); } }
运行结果如下:
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包