Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 251 Bytes

File metadata and controls

2 lines (2 loc) · 251 Bytes

Returning a present Optional or another one

Let's assume that we have an Optional. Write a program that relies on Optional.or() for returning this Optional (if its value is present) or another Optional (if its value is not present).