okay so I'm trying to create a program in which a user with input their day of birth in the dd/mm/yyyy format (or something similar). My teacher and I have a hard time connecting, mostly due to my hectic schedule so she can't always help. I'll post the assignment instructions but keep in mind, if you would like tohelp me, I'm very VERY slow at picking this up. So "idiot" instructions are preferred :-)...'Here is the specific instructions....how do I even start this?
***Write a program that asks the user fire his/her birth date and replies with the day of the week on which they were born. You CANNOT use the Gregorian Calendar for this.
There are hints to use both java.util and java.sql and that the string representation must be in the yyyy-MM-dd format.
If more info on my end is needed, let me know. I want SO badly to understand this, since it is my major.
Here's what i've started. I apologize if its WAAY off....(this is the 3rd version :-))
String date, month, day, year;
Scanner input = new Scanner(System.in);
Date birthday = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("EEEE");
System.out.println("Please enter your date of birth as mm/dd/yyyy");
date = input.next();
birthday = java.sql.Date.valueOf(date);
System.out.println("You were born on a " + sdf.format(date));
Thanks to all!!