import java.util.Formatter;
publicclass MainClass{
publicstaticvoid main(String[] argv){
StringBuilder sb = new StringBuilder();
Formatter f = new Formatter(sb);
boolean b = false;
f.format("Would you like some %f? %b", Math.PI, true);
System.out.println(sb);
}
}