mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
Merge pull request #2016 from Pengfei-Lu/patch-1
Update java11.md for isEmpty() method.
This commit is contained in:
commit
71aa80fb4b
@ -63,7 +63,7 @@ Java 11 增加了一系列的字符串处理方法:
|
||||
|
||||
## Optional 增强
|
||||
|
||||
新增了`empty()`方法来判断指定的 `Optional` 对象是否为空。
|
||||
新增了`isEmpty()`方法来判断指定的 `Optional` 对象是否为空。
|
||||
|
||||
```java
|
||||
var op = Optional.empty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user