public class PrintfExamples { public static void main(String[] args) { //http://host/path System.out.printf("%1$s://%2$s/%3$s\n", "http", "host", "path"); }}/*http://host/path*/