PrintfExamples.java Source code

Java tutorial

Introduction

Here is the source code for PrintfExamples.java

Source

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
    
    
*/