Java tutorial
public class PrintfExamples { public static void main(String[] args) { System.out.printf("My name is %s\n", "Joe"); System.out.printf("%s://%s/%s\n", "http", "host", "path"); } } /* My name is Joe http://host/path */