Created
June 9, 2020 18:56
-
-
Save theboreddev/67427dff5dbe5573d648a01a8343cc61 to your computer and use it in GitHub Desktop.
useOfCustomerClass
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
final Customer customer = Customer.builderOf("John", "Smith") | |
.withAge(30) | |
.build(); | |
System.out.println(customer.getAddress().orElse("No address present")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment