Skip to content

Instantly share code, notes, and snippets.

@theboreddev
Created June 9, 2020 16:51
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/5454b843e2de6dac2a8912e6255d7e4f to your computer and use it in GitHub Desktop.
Save theboreddev/5454b843e2de6dac2a8912e6255d7e4f to your computer and use it in GitHub Desktop.
constructorWithOptional
final Customer customer = new Customer(
"John",
"Smith",
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment