You are viewing a single comment's thread. Return to all comments →
For those of you having trouble getting it to run here is the correct format:
public class Solution{ public static String getDay(String day, String month, String year){ int dd = Integer.parseInt(day); int mm = Integer.parseInt(month); int yy = Integer.parseInt(year); LocalDate dt = LocalDate.of(yy, mm, dd); return dt.getDayOfWeek().toString(); }
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
For those of you having trouble getting it to run here is the correct format: