Getting information on a day

Report a typo

Write a program that reads a date from the standard input and output the following information on it:

1) number of the day in the year;

2) the number of the day in the month.

Sample Input 1:

2017-06-03

Sample Output 1:

154 3

Sample Input 2:

2017-04-28

Sample Output 2:

118 28
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