MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.io.File;
import java.util.Date;

public class MainClass {
    public static void main(String[] args) {
        // Create an object that is a directory
        File myDir = new File("C:/Java_Dev");
        System.out.println(new Date(myDir.lastModified()));
    }
}