I know its very simple question. but I would like to know the stringformat for boolean operator. For example, below shows the string formats for integer, string and float.
One more way is -
String output = String.format("boolean variable is %b",true); System.out.print(output);