Created
April 17, 2021 13:24
-
-
Save zivce/a97b2d76d6f7b9a09d17d078a8a0c32f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opt.<Runnable>map(value -> () -> System.out.println("Found " + value)) | |
.orElse(() -> System.out.println("Not present!")) | |
.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment