You are viewing a single comment's thread. Return to all comments →
import java.time.LocalDate; import java.util.*;
public class DateAndTime { public static String findDay(int month,int day,int year){
return LocalDate.of(year, month, day).getDayOfWeek().toString(); } public static void main(String[] args) { Scanner sc=new Scanner(System.in); int month=sc.nextInt(); int day=sc.nextInt(); int year=sc.nextInt(); System.out.println(findDay(month, day, year)); }
}
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 →
import java.time.LocalDate; import java.util.*;
public class DateAndTime { public static String findDay(int month,int day,int year){
}