【Java Tips】boolean的类型与string类型的转换

boolean类型转化为string

boolean b = true;
String s = String.valueOf(b);
System.out.println(s);