Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Calendar;

public class Main {
    public static void main(String args[]) {

        Object a[] = { "String 1", "String 2", Calendar.getInstance() };

        System.out.println(String.format("Hi %1$s at %2$s ( %3$tY %3$tm %3$te )", a));
    }
}
//Hi String 1 at String 2 ( 2009 03 2 )