The following piece of code prints the next occurring Wednesday in the calendar:
//Print the next occurring Wednesday
LocalDate today = LocalDate.now();
LocalDate nextWednesday =
today.with(TemporalAdjusters.next(DayOfWeek.WEDNESDAY));
System.out.println("Next Wednesday on : " + nextWednesday);