Write an immutable class SimpleDate (private final year, month, day) and a public class DateApp.
- Three overloaded constructors:
SimpleDate(int, int, int),SimpleDate(String iso)for"2026-03-07", and a copy constructor — the last two must call the first withthis(…). - Static helpers
isLeap(year)anddaysInMonth(year, month). nextDay()andplusDays(n)return a newSimpleDate;isBefore(other),equals(other),toString()→2026-03-07.
main reads a date as text, a date as three integers, and a number of days.
For the input
2026-02-27 2026 3 1 3
the program prints
a = 2026-02-27, b = 2026-03-01
day after a: 2026-02-28
a + 3 days: 2026-03-02
a is unchanged: 2026-02-27
a before b: true
a equals b: false
copy equals a: true, same object: false