Also available as DatePlay.java

/**
 * Very simple example of using a Date object
 * just prints out the object
 */

import java.util.*;

class DatePlay {
    static public void main(String []args) {
        Date d = new Date();
        System.out.println("The date is " + d);
    }
}