/*******************************************************************************
 * An address book entry template class  
 * Contains: fields 
 *           constructor
 *           toString() method
 ******************************************************************************/

public class AddrBookEntry
{
    String lastname;
    String firstname;
    String street;
    String city;
    String state;
    String zip;
    String phone;

    AddrBookEntry(String lastname, String firstname, 
                  String street,   String city, String state, String zip, String phone)
    {
        this.lastname  = lastname;
        this.firstname = firstname;
        this.street    = street;
        this.city      = city;
        this.state     = state;
        this.zip       = zip;
        this.phone     = phone;
    }

    public String toString()
    {
        String result  = "------------------------------------ \n";
               result += " Last  Name.: " + lastname  +       "\n";
               result += " First Name.: " + firstname +       "\n";
               result += " Addr Street: " + street    +       "\n";
               result += "      City..: " + city      +       "\n";
               result += "      State.: " + state     +       "\n";
               result += "      Zip...: " + zip       +       "\n";
               result += " Telephone..: " + phone ;
        return(result);
    }
}