Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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).

Morty Proxy This is a proxified and sanitized view of the page, visit original site.