X Tutup
Skip to content

Commit c8a6761

Browse files
authored
trim
1 parent 07cc257 commit c8a6761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java/new-features/java8-common-new-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public void getDayNew() {
934934
//当年最后一天
935935
LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear());
936936
//2021年最后一个周日,如果用Calendar是不得烦死。
937-
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12- 31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
937+
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12-31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
938938
}
939939
```
940940

@@ -1016,4 +1016,4 @@ System.out.println("本地时区时间: " + localZoned);
10161016
- Optional
10171017
- Date time-api
10181018

1019-
这些都是开发当中比较常用的特征。梳理下来发现它们真香,而我却没有更早的应用。总觉得学习 java 8 新特性比较麻烦,一致使用老的实现方式。其实这些新特性几天就可以掌握,一但掌握,效率会有很大的提高。其实我们涨工资也是涨的学习的钱,不学习终究会被淘汰,35 岁危机会提前来临。
1019+
这些都是开发当中比较常用的特征。梳理下来发现它们真香,而我却没有更早的应用。总觉得学习 java 8 新特性比较麻烦,一致使用老的实现方式。其实这些新特性几天就可以掌握,一但掌握,效率会有很大的提高。其实我们涨工资也是涨的学习的钱,不学习终究会被淘汰,35 岁危机会提前来临。

0 commit comments

Comments
 (0)
X Tutup