Type a LocalDate created with of() and a plusDays call
Type a LocalDate created with of() and a plusDays call
Answer
LocalDate start = LocalDate.of(2024, 1, 15); LocalDate end = start.plusDays(30);
of() takes year, month (1-based, not 0-based), day. plusDays returns a new LocalDate — start is unchanged.