-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contacts.java
100 lines (77 loc) · 1.73 KB
/
Contacts.java
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
public class Contacts {
private String firstname;
private String lastname;
private String address;
private String city;
private String state;
private String zipcode;
private String phone;
private String etc;
//constructor
Contacts(String firstname, String lastname, String address, String city,
String state, String zipcode,String phone,String etc) {
this.firstname = firstname;
this.lastname=lastname;
this.address = address;
this.city = city;
this.state = state;
this.zipcode = zipcode;
this.phone = phone;
this.etc = etc;
}
public String getFirstname() {
return firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEtc() {
return etc;
}
public void setEtc(String etc) {
this.etc = etc;
}
@Override
public String toString() {
return "Contacts [firstname=" + firstname + ", lastname=" + lastname
+ ", address=" + address + ", city=" + city + ", state="
+ state + ", zipcode=" + zipcode + ", phone=" + phone
+ ", etc=" + etc + "]";
}
}