You are viewing a single comment's thread. Return to all comments →
public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); String month = in.next(); String day = in.next(); String year = in.next(); LocalDate localDate = LocalDate.of(Integer.parseInt(year),Integer.parseInt(month), Integer.parseInt(day)); DayOfWeek dayOfWeek = localDate.getDayOfWeek(); System.out.println(dayOfWeek); } }
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 →