Skip to content

Commit

Permalink
Merge pull request Snailclimb#1230 from rain7fine11/patch-6
Browse files Browse the repository at this point in the history
trim
  • Loading branch information
Snailclimb authored Jun 7, 2021
2 parents 02fdc54 + c8a6761 commit 0af6c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/new-features/java8-common-new-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ public void getDayNew() {
//当年最后一天
LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear());
//2021年最后一个周日,如果用Calendar是不得烦死。
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12- 31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12-31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
}
```

Expand Down

0 comments on commit 0af6c51

Please sign in to comment.