Convert numbers to days

Report a typo

Write a program that reads a year and three days of this year (by their numbers) from the standard input and output all dates corresponding to these numbers in the same order.

Sample Input 1:

2017
315
5
42

Sample Output 1:

2017-11-11
2017-01-05
2017-02-11
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