public String toString() { if (category == 1) relation = "Family Member"; else if (category == 2) relation = "Friend"; else relation = "Business Associate"; return (name.uppercase() + " - " + location.toString() + "\nPhone Number: " + phoneNum + " BirthDay: " + bDay.toString() + "\n" + relation + "\n"); }
public void setExtPerson( String first, String mid, String last, int month, int day, int year, String st, String place, int zip, int categ, String pNum) { name.setName(first, mid, last); bDay.setDate(month, day, year); location.setAddress(st, place, zip); category = categ; phoneNum = pNum; }