Guest User

Untitled

a guest
Feb 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. String alice = null;
  2. String bob = "bob";
  3. String name = Optional.ofNullable(alice).orElseGet(() -> bob);
  4. ; name.equals(bob)
Add Comment
Please, Sign In to add comment