Added 15 solutions

This commit is contained in:
rshaghoulian
2017-02-07 01:14:49 -08:00
parent 692821a288
commit b06588fddf
15 changed files with 406 additions and 0 deletions
@@ -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());
}
}