1 37 38 package com.sun.j2ee.blueprints.customer; 39 40 45 public class Address implements java.io.Serializable { 46 47 private String streetName1; 48 private String streetName2; 49 private String city; 50 private String state; 51 private String zipCode; 52 private String country; 53 54 public Address() {} 55 56 public Address(String streetName1, String streetName2, String city, 57 String state, String zipCode, String country) { 58 this.streetName1 = streetName1; 59 this.streetName2 = streetName2; 60 this.city = city; 61 this.state = state; 62 this.zipCode = zipCode; 63 this.country = country; 64 } 65 66 68 public String getStreetName1() { 69 return streetName1; 70 } 71 72 public String getStreetName2() { 73 return streetName2; 74 } 75 76 public String getCity() { 77 return city; 78 } 79 80 public String getState() { 81 return state; 82 } 83 84 public String getCountry() { 85 return country; 86 } 87 88 public String getZipCode() { 89 return zipCode; 90 } 91 92 public String toString() { 93 return "Address[streeName1=" + streetName1 + ", " 94 + "streetName2=" + streetName2 + ", " 95 + "city=" + city + ", " 96 + "state=" + state + ", " 97 + "zipCode=" + zipCode + ", " 98 + "country=" + country + "]"; 99 } 100 } 101 102 103 | Popular Tags |