Java tutorial
public class Main { public static void main(String[] args) { System.out.printf("%1$s, %<s, %<s, %2$s, and %<s", "A", "B"); } }