KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > ReturnPersonExample


1 /* ****************************************************************************
2  * ReturnPersonExample.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package examples;
11
12 import java.util.ArrayList JavaDoc;
13
14 //------------------------------------------------------------------------------
15
// See examples/javarpc/returnperson.lzx
16
//------------------------------------------------------------------------------
17

18 public class ReturnPersonExample {
19
20     static ArrayList JavaDoc list = new ArrayList JavaDoc();
21
22     public static Person getPerson() {
23         return new Person("eric", "2600 campus drive", "san mateo");
24     }
25
26     public static ArrayList JavaDoc getArrayListOfPerson() {
27         return list;
28     }
29
30     static
31     {
32         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
33         list.add(new Person("scott", "2600 campus drive", "san mateo"));
34         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
35         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
36         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
37         list.add(new Person("scott", "2600 campus drive", "san mateo"));
38         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
39         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
40         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
41         list.add(new Person("scott", "2600 campus drive", "san mateo"));
42         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
43         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
44         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
45         list.add(new Person("scott", "2600 campus drive", "san mateo"));
46         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
47         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
48         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
49         list.add(new Person("scott", "2600 campus drive", "san mateo"));
50         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
51         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
52         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
53         list.add(new Person("scott", "2600 campus drive", "san mateo"));
54         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
55         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
56         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
57         list.add(new Person("scott", "2600 campus drive", "san mateo"));
58         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
59         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
60         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
61         list.add(new Person("scott", "2600 campus drive", "san mateo"));
62         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
63         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
64         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
65         list.add(new Person("scott", "2600 campus drive", "san mateo"));
66         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
67         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
68         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
69         list.add(new Person("scott", "2600 campus drive", "san mateo"));
70         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
71         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
72         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
73         list.add(new Person("scott", "2600 campus drive", "san mateo"));
74         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
75         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
76         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
77         list.add(new Person("scott", "2600 campus drive", "san mateo"));
78         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
79         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
80         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
81         list.add(new Person("scott", "2600 campus drive", "san mateo"));
82         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
83         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
84         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
85         list.add(new Person("scott", "2600 campus drive", "san mateo"));
86         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
87         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
88         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
89         list.add(new Person("scott", "2600 campus drive", "san mateo"));
90         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
91         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
92         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
93         list.add(new Person("scott", "2600 campus drive", "san mateo"));
94         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
95         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
96         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
97         list.add(new Person("scott", "2600 campus drive", "san mateo"));
98         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
99         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
100         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
101         list.add(new Person("scott", "2600 campus drive", "san mateo"));
102         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
103         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
104         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
105         list.add(new Person("scott", "2600 campus drive", "san mateo"));
106         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
107         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
108         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
109         list.add(new Person("scott", "2600 campus drive", "san mateo"));
110         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
111         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
112         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
113         list.add(new Person("scott", "2600 campus drive", "san mateo"));
114         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
115         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
116         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
117         list.add(new Person("scott", "2600 campus drive", "san mateo"));
118         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
119         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
120         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
121         list.add(new Person("scott", "2600 campus drive", "san mateo"));
122         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
123         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
124         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
125         list.add(new Person("scott", "2600 campus drive", "san mateo"));
126         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
127         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
128         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
129         list.add(new Person("scott", "2600 campus drive", "san mateo"));
130         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
131         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
132         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
133         list.add(new Person("scott", "2600 campus drive", "san mateo"));
134         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
135         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
136         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
137         list.add(new Person("scott", "2600 campus drive", "san mateo"));
138         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
139         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
140         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
141         list.add(new Person("scott", "2600 campus drive", "san mateo"));
142         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
143         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
144         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
145         list.add(new Person("scott", "2600 campus drive", "san mateo"));
146         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
147         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
148         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
149         list.add(new Person("scott", "2600 campus drive", "san mateo"));
150         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
151         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
152         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
153         list.add(new Person("scott", "2600 campus drive", "san mateo"));
154         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
155         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
156         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
157         list.add(new Person("scott", "2600 campus drive", "san mateo"));
158         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
159         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
160         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
161         list.add(new Person("scott", "2600 campus drive", "san mateo"));
162         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
163         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
164         list.add(new Person("kathryn", "2600 campus drive", "san mateo"));
165         list.add(new Person("scott", "2600 campus drive", "san mateo"));
166         list.add(new Person("sarah", "2600 campus drive", "san mateo"));
167         list.add(new Person("kirsten", "2600 campus drive", "san mateo"));
168     }
169
170 }
171
Popular Tags