You are viewing a single comment's thread. Return to all comments →
My working solution
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; }
class Result {
public static String findDay(int month, int day, int year) { Calendar calendar = new GregorianCalendar(); calendar.set(year, month - 1, day); return Days.values()[calendar.get(Calendar.DAY_OF_WEEK)-1].name(); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
My working solution
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; }
class Result {
}