1. 학습
  2. /
  3. 강의
  4. /
  5. Input/Output and Streams in Java

Connected

연습 문제

Performing date calculation

Date arithmetic allows you to modify dates dynamically. In this exercise, you will calculate both a future date by adding days and a past date by subtracting days from the current date.

지침

100 XP
  • Get the current date.
  • Add 10 days to the current date.
  • Call method to subtract days from the current date.
  • Provide the correct input to subtract 5 days