Java tutorial
import java.util.Optional; public class Main { public static void main(String[] args) { Optional<Integer> o = Optional.empty(); System.out.println(o.orElse(42)); } }