我知道它非常简单的问题.但我想知道布尔运算符的stringformat.例如,下面显示了integer,string和float的字符串格式.什么可以为布尔运算符true/false?
System.out.printf("The value of the float " +
"variable is %f, while " +
"the value of the " +
"integer variable is %d, " +
"and the string is %s",
floatVar, intVar, stringVar);
Run Code Online (Sandbox Code Playgroud) java ×1