AddressBook.java

 /**
* @author Noel Jarencio
*
* Description: Address book program.
*/

public class AddressBook {
private String name;
private String address;
private String telNo;
private String email;

public AddressBook() {
name = "";
address = "";
telNo = "";
email = "";
}

public AddressBook(String name, String address, String telNo, String email) {
this.name = name;
this.address = address;
this.telNo = telNo;
this.email = email;
}

//setters
public void setName(String name) {
this.name = name;
}

public void setAddress(String address) {
this.address = address;
}

public void setTelNo(String telNo) {
this.telNo = telNo;
}

public void setEmail(String email) {
this.email = email;
}

//getters
public String getName() {
return name;
}

public String getAddress() {
return address;
}

public String getTelNo() {
return telNo;
}

public String getEmail() {
return email;
}
}

Project Homepage: