//******************************************************************** // address.java Author: Pat Moss Rev: 01 10-29-2005 // // Represents a street address //******************************************************************** public class address { private String streetAddress, city, state; private long zipCode; //----------------------------------------------------------------- // Constructor: Sets up this address with the specified data //----------------------------------------------------------------- public address (String street, String town, String st, long zip) { streetAddress = street; city = town; state = st; zipCode = zip; } //----------------------------------------------------------------- // Returns a description of this address object //----------------------------------------------------------------- public String toString() { String result; result = streetAddress + "\n"; result += city + ", " + state + " " + zipCode; return result; } }