/Users/lyon/j4p/src/addBk/addressBook/AddressRecord.java

1    package addBk.addressBook; 
2     
3    //AddressRecord.javaAddressRecord.java 
4     
5     
6    import java.io.Serializable; 
7     
8    public class AddressRecord 
9            implements Serializable { 
10       private String name; 
11       private String address1; 
12       private String address2; 
13       private String phone1; 
14       private String phone2; 
15       private String phone3; 
16    
17       public String getPhone1() { 
18           return phone1; 
19       } 
20    
21       public String getPhone2() { 
22           return phone2; 
23       } 
24    
25       public String getPhone3() { 
26           return phone3; 
27       } 
28    
29       public String getAddress1() { 
30           return address1; 
31       } 
32    
33       public String getName() { 
34           return name; 
35       } 
36    
37       AddressRecord(String s[]) { 
38           name = s[0]; 
39           address1 = s[1]; 
40           address2 = s[2]; 
41           phone1 = s[3]; 
42           phone2 = s[4]; 
43           phone3 = s[5]; 
44       } 
45   } 
46