MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {
    public static void main(String args[]) {
        System.out.printf("Parameter list without reordering: %s %s %s %s\n", "first", "second", "third", "fourth");
        System.out.printf("Parameter list after reordering: %4$s %3$s %2$s %1$s\n", "first", "second", "third",
                "fourth");
    }
}