Computer Science
/****************************** COSC-1436 El Centro College Professor Keith Smelser Address Class */ public class USA_Address { String optionalLocationName = null; String street1 = null; String street2 = null; String city = null; String stateCode = null; int zipCode = -1; public String getOptionalLocationName() { return optionalLocationName; } public void setOptionalLocationName(String locationName) { this.optionalLocationName = locationName; } public String getStreet1() { return street1; } public void setStreet1(String street1) { this.street1 = street1; } public String getStreet2() { return street2; } public void setStreet2(String street2) { this.street2 = street2; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getStateCode() { return stateCode; } public void setStateCode(String stateCode) { this.stateCode = stateCode; } public int getZipCode() { return zipCode; } public void setZipCode(int zipCode) { this.zipCode = zipCode; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return "Address [optionalLocationName=" + optionalLocationName + ", street1=" + street1 + ", street2=" + street2 + ", city=" + city + ", stateCode=" + stateCode + ", zipCode=" + zipCode + "]"; } }