Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Main {
    public static void main(String[] argv) throws Exception {

        GregorianCalendar newCal = new GregorianCalendar();
        int day = newCal.get(Calendar.DAY_OF_WEEK);

        newCal = new GregorianCalendar();
        newCal.set(1997, 2, 1, 0, 0, 0);
        newCal.setTime(newCal.getTime());
        day = newCal.get(Calendar.DAY_OF_WEEK);

    }
}