You are viewing a single comment's thread. Return to all comments →
In Java 15 solution
public static String findDay(int month, int day, int year) { Calendar calendar = Calendar.getInstance(); var dayOfWeek = calendar.get(calendar.DAY_OF_WEEK); String[] names = new String[] {"SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"}; return names[dayOfWeek - 1]; }
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 →
In Java 15 solution