MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Date;

/**
 Output:
    
 The DATE is FRI MAY 26 11:04:36 PDT 2006
     
 * */

public class MainClass {
    public static void main(String args[]) throws Exception {

        Date date = new Date();
        System.out.printf("The DATE is %Tc\n", date);

    }
}