All pastes #772640 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-13 23:06 UTC
rendered paste body
package Project;

public class AddressBookEntry
{
	private String firstName = "";
	private String lastName = "";
	private String address1 = "";
	private String address2 = "";
	private String city = "";
	private String state = "";
	private String zipcode = "";
	private String phoneNumber = "";
	private String emailAddress = "";
	private int personID;
	private int addressID;
	private int phoneID;
	private int emailID;
	
	public AddressBookEntry()
	{}
	
	//set person's id
	public AddressBookEntry(int id)
	{
		personID = id;
	}
	
	//set person's first name
	public void setFirstName(String first)
	{
		firstName = first;
	}
	
	//get person's first name
	public String getFirstName()
	{
		return firstName;
	}
	
	//set person's last name
	public void setLastName(String last)
	{
		lastName = last;
	}
	
	//get person's last name
	public String getLastName()
	{
		return lastName;
	}
	
	//set first line of person's address
	public void setAddress1(String firstLine)
	{
		address1 = firstLine;
	}
	
	//get first line of person's address
	public String getAddress1()
	{
		return address1;
	}
	
	//set second line of person's address
	public void setAddress2(String secondLine)
	{
		address2 = secondLine;
	}
	
	//get second line of person's address
	public String getAddress2()
	{
		return address2;
	}
	
	//set city in which person lives
	public void setCity(String personCity)
	{
		city = personCity;
	}
	
	//get city in which person lives
	public String getCity()
	{
		return city;
	}
	
	//set state in which person lives
	public void setState(String personState)
	{
		state = personState;
	}
	
	//get state in which person lives
	public String getState()
	{
		return state;
	}
	
	//set person's zip code
	public void setZipcode(String zip)
	{
		zipcode = zip;
	}
	
	//get person's zip code
	public String getZipcode()
	{
		return zipcode;
	}
	
	//set person's phone number
	public void setPhoneNumber(String number)
	{
		phoneNumber = number;
	}
	
	//get person's phone number
	public String getPhoneNumber()
	{
		return phoneNumber;
	}
	
	//set person's email
	public void setEmailAddress(String email)
	{
		emailAddress = email;
	}
	
	//get person's email
	public String getEmailAddress()
	{
		return emailAddress;
	}
	
	//get person's ID
	public int getPersonID()
	{
		return personID;
	}
	
	//set person's addressID
	public void setAddressID(int id)
	{
		addressID = id;
	}
	
	//get person's addressID
	public int getAddressID()
	{
		return addressID;
	}
	
	//set person's phoneID
	public void setPhoneID(int id)
	{
		phoneID = id;
	}
	
	//get person's phoneId
	public int getPhoneId()
	{
		return phoneID;
	}
	
	//set person's emailID
	public void setEmailID(int id)
	{
		emailID = id;
	}
	
	//get person's emailID
	public int getEmailID()
	{
		return emailID;
	}
}
//end class AddressBookEntry