1 7 package com.inversoft.verge.mvc.test; 8 9 10 19 public class Address { 20 21 private String [] countries = {"Select a country", "USA", "Canada"}; 22 private String [] cities; 23 private String address1; 24 private String address2; 25 private String country; 26 private String city; 27 private String state; 28 private String zipcode; 29 30 31 34 public Address() { 35 super(); 36 } 37 38 39 42 public String [] getCountries() { 43 return countries; 44 } 45 46 49 public void setCountries(String [] strings) { 50 countries = strings; 51 } 52 53 56 public String [] getCities() { 57 return cities; 58 } 59 60 63 public void setCities(String [] strings) { 64 cities = strings; 65 } 66 67 72 public String getAddress1() { 73 return address1; 74 } 75 76 81 public void setAddress1(String address1) { 82 this.address1 = address1; 83 } 84 85 90 public String getAddress2() { 91 return address2; 92 } 93 94 99 public void setAddress2(String address2) { 100 this.address2 = address2; 101 } 102 103 108 public String getCity() { 109 return city; 110 } 111 112 117 public void setCity(String city) { 118 this.city = city; 119 } 120 121 126 public String getState() { 127 return state; 128 } 129 130 135 public void setState(String state) { 136 this.state = state; 137 } 138 139 142 public String getCountry() { 143 return country; 144 } 145 146 149 public void setCountry(String string) { 150 country = string; 151 } 152 153 158 public String getZipcode() { 159 return zipcode; 160 } 161 162 167 public void setZipcode(String zipcode) { 168 this.zipcode = zipcode; 169 } 170 171 174 public String toString() { 175 StringBuffer buf = new StringBuffer (); 176 buf.append("address1: ").append(address1).append("\n"); 177 buf.append("address2: ").append(address2).append("\n"); 178 buf.append("city: ").append(city).append("\n"); 179 buf.append("state: ").append(state).append("\n"); 180 buf.append("zipcode: ").append(zipcode).append("\n"); 181 return buf.toString(); 182 } 183 } | Popular Tags |