Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class Main {

    public static void main(String[] args) {
        Date date1 = (new GregorianCalendar(2009, Calendar.OCTOBER, 17)).getTime();
        System.out.println(new SimpleDateFormat("EEEE").format(date1));
    }
}