Add 11 hours and print the date

Report a typo

Write a program that reads date-time, adds 11 hours to it and then prints out the resulting date.

The input date-time format should be, for example, "2017-12-31T22:30". The resulting date then must be "2018-01-01".

Sample Input 1:

2017-12-31T22:30

Sample Output 1:

2018-01-01
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