Java LocalDate get Christmas days for the next five years
import java.time.LocalDate; public class Main { public static void main(String[] args) { LocalDate ld = LocalDate.now(); for (int i = 1; i <= 5; i++) { ld = ld.withYear(ld.getYear() + 1); System.out.println(ld);//from ww w .j a v a 2 s.co m } } }