Advertisement
Guest User

Untitled

a guest
May 30th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.48 KB | None | 0 0
  1. public class Address
  2. {
  3.     private String Name;
  4.  
  5.     private String GLN;
  6.  
  7.     private String Street;
  8.  
  9.     private String State;
  10.  
  11.     private String Zip;
  12.  
  13.     private String Country;
  14.  
  15.     private String City;
  16.  
  17.     public String getName ()
  18.     {
  19.         return Name;
  20.     }
  21.  
  22.     public void setName (String Name)
  23.     {
  24.         this.Name = Name;
  25.     }
  26.  
  27.     public String getGLN ()
  28.     {
  29.         return GLN;
  30.     }
  31.  
  32.     public void setGLN (String GLN)
  33.     {
  34.         this.GLN = GLN;
  35.     }
  36.  
  37.     public String getStreet ()
  38.     {
  39.         return Street;
  40.     }
  41.  
  42.     public void setStreet (String Street)
  43.     {
  44.         this.Street = Street;
  45.     }
  46.  
  47.     public String getState ()
  48.     {
  49.         return State;
  50.     }
  51.  
  52.     public void setState (String State)
  53.     {
  54.         this.State = State;
  55.     }
  56.  
  57.     public String getZip ()
  58.     {
  59.         return Zip;
  60.     }
  61.  
  62.     public void setZip (String Zip)
  63.     {
  64.         this.Zip = Zip;
  65.     }
  66.  
  67.     public String getCountry ()
  68.     {
  69.         return Country;
  70.     }
  71.  
  72.     public void setCountry (String Country)
  73.     {
  74.         this.Country = Country;
  75.     }
  76.  
  77.     public String getCity ()
  78.     {
  79.         return City;
  80.     }
  81.  
  82.     public void setCity (String City)
  83.     {
  84.         this.City = City;
  85.     }
  86.  
  87.     @Override
  88.     public String toString()
  89.     {
  90.         return "Address [Name = "+Name+", GLN = "+GLN+", Street = "+Street+", State = "+State+", Zip = "+Zip+", Country = "+Country+", City = "+City+"]";
  91.     }
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement