usually you should prefer the functional approach ...
# language-proposals
j
usually you should prefer the functional approach with optional types:
opt.ifPresent(System.out::println)