How will you add 1 week to current date using local datetime api of java8 in Java8?
Following code adds 1 week to current date using local datetime api -
//add 1 week to the current date
LocalDate today = LocalDate.now();
LocalDate nextWeek = today.plus(1, ChronoUnit.WEEKS);
System.out.println("Next week: " + nextWeek);