Added 15 solutions
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.util.Scanner;
|
||||
import java.time.LocalDate;
|
||||
|
||||
public class Solution {
|
||||
|
||||
public static void main(String[] args) {
|
||||
/* Read input */
|
||||
Scanner scan = new Scanner(System.in);
|
||||
int month = scan.nextInt();
|
||||
int day = scan.nextInt();
|
||||
int year = scan.nextInt();
|
||||
scan.close();
|
||||
|
||||
/* Create LocalDate instance */
|
||||
LocalDate date = LocalDate.of(year, month, day);
|
||||
System.out.println(date.getDayOfWeek());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user