1
0
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:
Guide 2023-05-16 20:26:24 +08:00 committed by GitHub
commit 71aa80fb4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ Java 11 增加了一系列的字符串处理方法:
## Optional 增强
新增了`empty()`方法来判断指定的 `Optional` 对象是否为空。
新增了`isEmpty()`方法来判断指定的 `Optional` 对象是否为空。
```java
var op = Optional.empty();