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