KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > TypesExample


1 /* ****************************************************************************
2  * TypesExample.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.Vector JavaDoc;
13 import java.util.Hashtable JavaDoc;
14
15 public class TypesExample {
16
17     public static String JavaDoc passInteger(int i) {
18         return "got integer parameter: " + i;
19     }
20
21     public static String JavaDoc passDouble(double d) {
22         return "got double parameter: " + d;
23     }
24
25     public static String JavaDoc passBoolean(boolean b) {
26         return "got boolean parameter: " + b;
27     }
28
29     public static String JavaDoc passClientArray(Vector JavaDoc v) {
30         return "got vector parameter: " + v;
31     }
32
33     public static String JavaDoc passClientObject(Hashtable JavaDoc t) {
34         return "got hashtable parameter: " + t;
35     }
36
37 }
38
Popular Tags