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 %2$b? %1$f", Math.PI, true);
System.out.println(sb);
}
}