Skip to content

Instantly share code, notes, and snippets.

@theboreddev
Created June 9, 2020 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theboreddev/67427dff5dbe5573d648a01a8343cc61 to your computer and use it in GitHub Desktop.
Save theboreddev/67427dff5dbe5573d648a01a8343cc61 to your computer and use it in GitHub Desktop.
useOfCustomerClass
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