Here you can find the source of getNextNoWeekedDay(LocalDate today)
public static LocalDate getNextNoWeekedDay(LocalDate today)
//package com.java2s; import java.time.*; public class Main { public static LocalDate getNextNoWeekedDay(LocalDate today) { while (today.getDayOfWeek() == DayOfWeek.SATURDAY || today.getDayOfWeek() == DayOfWeek.SUNDAY) { today = today.plusDays(1);//from ww w. ja va 2s . co m } return today; } }