最佳答案
String[] weekday = {"星期一","星期二","星期三","星期四","星期五","星期六","星期日"};
LocalDate today = LocalDate.now();
System.out.println("今天:日期" + today + ", " + weekday[today.getDayOfWeek().getValue()-1]);
LocalDate hundredDayBefore = LocalDate.now().minusDays(100);
System.out.println("100天前:日期" + hundredDayBefore + ", " + weekday[hundredDayBefore.getDayOfWeek().getValue()-1]);
LocalDate hundredDayLater = LocalDate.now().plusDays(100);
System.out.println("100天后:日期" + hundredDayLater + ", " + weekday[hundredDayLater.getDayOfWeek().getValue()-1]);
最佳答案由网友 正三吉 提供