PROGRAMMING:Ask for the next day
Enter the value of month, year and day (all integer numbers) and output the next day of the date. Among them, the legal value range of year is [18202020], the legal value range of month is [1,12], and the legal value range of date is [1,31].
**Note: Java date related classes and methods are not allowed**
Requirement: the main class must contain the following methods with the signature as follows:
```
public static void main(String[] args);// Main method
public static boolean isLeapYear(int year) ;// Judge whether year is leap year, return Boolean type
public static boolean checkInputValidity(int year,int month,int day);// Judge whether the input date is legal, return Boolean value
public static void nextDate(int year,int month,int day) ; // Find the next day of the input date
```
###Input format:
Enter the values of month, year and day in one line. They are all integer numbers. You can separate them with one or more spaces or carriage returns.
###Output format:
1. When the input data is illegal and the input date does not exist, output "wrong format";
1. When the input date is legal, output the next day in the following format: next date is: Year Month Day
###Input sample 1:
Here is a set of inputs. For example:
```in
2020 3 10
```
###Output sample 1:
The corresponding output is given here. For example:
```out
Next date is:2020-3-11
```
###Input sample 2:
Here is a set of inputs. For example:
```in
2025 2 10
```
###Output sample 2:
The corresponding output is given here. For example:
```out
Wrong Format
```
answer:If there is no answer, please comment
1. Pay attention to the boundary of input data
1. Pay attention to the situation in February
1. Pay attention to the situation in December
1. Pay attention to 30 and 31 days of each month
**Note: Java date related classes and methods are not allowed**
Requirement: the main class must contain the following methods with the signature as follows:
```
public static void main(String[] args);// Main method
public static boolean isLeapYear(int year) ;// Judge whether year is leap year, return Boolean type
public static boolean checkInputValidity(int year,int month,int day);// Judge whether the input date is legal, return Boolean value
public static void nextDate(int year,int month,int day) ; // Find the next day of the input date
```
###Input format:
Enter the values of month, year and day in one line. They are all integer numbers. You can separate them with one or more spaces or carriage returns.
###Output format:
1. When the input data is illegal and the input date does not exist, output "wrong format";
1. When the input date is legal, output the next day in the following format: next date is: Year Month Day
###Input sample 1:
Here is a set of inputs. For example:
```in
2020 3 10
```
###Output sample 1:
The corresponding output is given here. For example:
```out
Next date is:2020-3-11
```
###Input sample 2:
Here is a set of inputs. For example:
```in
2025 2 10
```
###Output sample 2:
The corresponding output is given here. For example:
```out
Wrong Format
```
answer:If there is no answer, please comment
1. Pay attention to the boundary of input data
1. Pay attention to the situation in February
1. Pay attention to the situation in December
1. Pay attention to 30 and 31 days of each month