Created
March 14, 2020 03:16
-
-
Save ashkrit/741276a9301dfa1e573dd2ee17da6597 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
| //Not using optional | |
| if (p.email != null) { | |
| System.out.println("Sending email to " + p.email); | |
| } | |
| if (p.phone != null) { | |
| System.out.println("Calling " + p.phone); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment