1 7 package org.jboss.cache.tests.aop; 8 9 10 11 21 public class Address 22 { 23 String street = null; 24 String city = null; 25 int zip = 0; 26 27 public String getStreet() 28 { 29 return street; 30 } 31 32 public void setStreet(String street) 33 { 34 this.street = street; 35 } 36 37 public String getCity() 38 { 39 return city; 40 } 41 42 public void setCity(String city) 43 { 44 this.city = city; 45 } 46 47 public int getZip() 48 { 49 return zip; 50 } 51 52 public void setZip(int zip) 53 { 54 this.zip = zip; 55 } 56 57 public String toString() 58 { 59 return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip(); 60 } 61 62 } 66 | Popular Tags |