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("num is %03d\n", 5);

    }

}
/*
num is 005
    
 */