The first and the last day of a month

Report a typo

Write a program that reads a year and a month and outputs the first and the last day of this month.

Sample Input 1:

2017
1

Sample Output 1:

2017-01-01 2017-01-31
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