Write a program that prompts the user to enter a date, using integer values for the month, day, and year, and then prints out the day of the week that fell on that date.
According to the Gregorian Calendar, January 1, 1601 was a Monday. Observe all leap years (and keep in mind that 1700, 1800, and 1900 were not leap years).
------------------------------------what I have so far is below, besides that I am stuck------------------------------------------------------------------------
import java.util.*;
public class DayOfTheWeek {
public static void main(String args[]) {
userInput();
leapYearCheck();
}
public static void userInput(){
Scanner console = new Scanner(System.in);
int month;
int day;
int year;
System.out.print("Enter month:");
month = console.nextInt();
System.out.print("Enter day:");
day = console.nextInt();
System.out.print("Enter year:");
/* solves for the leap year */
if( (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
year = 1601 +3;
}
}