The New Year is coming (or not)

Report a typo

Your task is to write a program that checks if the New Year will come in a specified number of days (N) after a certain date.

Input data format

A single line containing a date in the year-month-day format and an integer N separated by one space character.

Output data format

Just "true" or "false".

Sample Input 1:

2017-01-01 364

Sample Output 1:

false
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic