Skip to content

Instantly share code, notes, and snippets.

@lovewithmind
Created June 12, 2021 07:31
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 lovewithmind/5fffdcbd4e9328365b241e0105239a64 to your computer and use it in GitHub Desktop.
Save lovewithmind/5fffdcbd4e9328365b241e0105239a64 to your computer and use it in GitHub Desktop.
Address data class
public class Address{
private final String addressLine1;
private final String AddressLine2;
private final Integer postalCode;
Address(final String addressLine1,
final String addressLine2,
final Integer postalCode) {
this.addressLine1 = addressLine1;
this.AddressLine2 = addressLine2;
this.postalCode = postalCode;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment