public class Address { private String name; private String email; public Address(String name, String email) { this.name = name; this.email = email; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } }