-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddress.java
More file actions
60 lines (44 loc) · 1.04 KB
/
Address.java
File metadata and controls
60 lines (44 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package phoneBookClasses;
public class Address {
private String streetNumber;
private String city;
private String state;
private String zipCode;
public Address() {
}
public Address(String streetNumber, String city, String state, String zipCode) {
this.streetNumber = streetNumber;
this.city = city;
this.state = state;
this.zipCode = zipCode;
}
public String getStreetNumber() {
return this.streetNumber;
}
public void setStreetNumber(String streetNumber) {
this.streetNumber = streetNumber;
}
public String getCity() {
return this.city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return this.state;
}
public void setState(String state) {
this.state = state;
}
public String getzipCode() {
return this.zipCode;
}
public void setZipCode(String zipCode) {
this.zipCode = zipCode;
}
@Override
public String toString() {
return "Address [streetNumber=" + streetNumber + ", city=" + city + ", state=" + state + ", zipCode=" + zipCode
+ "]";
}
}