It's not when null is a valid value, he's looking ...
# announcements
k
It's not when null is a valid value, he's looking to do only do something if
Optional#isPresent()
returns true. In Java:
Copy code
if (optional.isPresent()) {
  optional.get().//other stuff here
}