[ad_1]
Use .orElse(null) if you want null. The idea of Optional is to force you to explicitly handle the absence of the value.
0
[ad_2]
solved Java 8 Optional
[ad_1]
Use .orElse(null) if you want null. The idea of Optional is to force you to explicitly handle the absence of the value.
0
[ad_2]
solved Java 8 Optional