Znam bardzo proste pytanie. ale chciałbym znać format string dla operatora boolean. Na przykład poniżej pokazano formaty ciągów dla liczb całkowitych, łańcuchów i liczb zmiennoprzecinkowych. co może być dla operatora boolowskiego prawda/fałsz?StringFormat dla operatora Java Boolean
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);
http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html –
możliwe duplikat [Formatowanie przy użyciu printf i formatowanie) (http://stackoverflow.com/questions/8629995/formatting-using-printf-and-format) – Jens