01: /* ****************************************************************************
02: * TypesExample.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package examples;
11:
12: import java.util.Vector;
13: import java.util.Hashtable;
14:
15: public class TypesExample {
16:
17: public static String passInteger(int i) {
18: return "got integer parameter: " + i;
19: }
20:
21: public static String passDouble(double d) {
22: return "got double parameter: " + d;
23: }
24:
25: public static String passBoolean(boolean b) {
26: return "got boolean parameter: " + b;
27: }
28:
29: public static String passClientArray(Vector v) {
30: return "got vector parameter: " + v;
31: }
32:
33: public static String passClientObject(Hashtable t) {
34: return "got hashtable parameter: " + t;
35: }
36:
37: }
|