We would like to know how to check if today is after tomorrow.
/*www .j a v a 2 s . c o m*/ import java.time.LocalDate; public class Main { public static void main(String[] argv) { LocalDate today = LocalDate.now(); LocalDate tomorrow = today.plusDays(1); System.out.println(tomorrow.isAfter(today)); } }
The code above generates the following result.