8.25.6.By default, arguments are formatted in their order of appearance in Formatter.
import java.util.Formatter; public class MainClass{ public static void 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);