mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update java11.md for isEmpty() method.
This commit is contained in:
parent
21573992f6
commit
f964ce9cd0
@ -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