mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
update java8-common-new-features.md
This commit is contained in:
parent
9fbbdc679e
commit
832d5cb7e0
@ -681,7 +681,7 @@ public static void main(String[] args) {
|
||||
System.out.println("User's city without flatMap: " + cityWithoutFlatMap);
|
||||
}
|
||||
```
|
||||
在`Stream`和`Optional`中正确使用flatMap可以减少很多不必要的代码。
|
||||
在`Stream`和`Optional`中正确使用`flatMap`可以减少很多不必要的代码。
|
||||
|
||||
### 判断 value 是否为 null
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user