/Users/lyon/j4p/src/futils/Customer.java

1    package futils; 
2     
3    import java.io.Serializable; 
4     
5    public class Customer implements 
6            Serializable, 
7            Runnable { 
8     
9        int numberOfHoursWorked = 90; 
10    
11       String s[] = { 
12           "Hello World", 
13           "This is a test of", 
14           "My serializer" 
15       }; 
16    
17       String name = "J. Doe"; 
18       boolean hasCallerID = false; 
19    
20       public void setName(String _s) { 
21           name = _s; 
22       } 
23    
24       public void run() { 
25           System.out.println("Hello world"); 
26       } 
27    
28       public void print() { 
29           System.out.println(name); 
30           System.out.println(hasCallerID); 
31           System.out.println("numberOfHoursWorked=" + numberOfHoursWorked); 
32           for (int i = 0; i < s.length; i++) 
33               System.out.println(s[i]); 
34       } 
35   } 
36