Write a program that reads a date from the standard input and prints two dates: 30 years before and after compared to the given date.
Computer scienceProgramming languagesJavaAdditional instrumentsEssential standard classesDate and time
LocalDate
30 years before and after
Report a typo
Sample Input 1:
2017-06-03Sample Output 1:
1987-06-03
2047-06-03Sample Input 2:
2017-04-28Sample Output 2:
1987-04-28
2047-04-28Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.