KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > BurlapMathService


1 package example;
2
3 import com.caucho.burlap.server.BurlapServlet;
4
5 public class BurlapMathService extends BurlapServlet {
6   /**
7    * Adds two integers.
8    */

9   public int add(int a, int b)
10   {
11     return a + b;
12   }
13   
14   /**
15    * Subtracts two integers.
16    */

17   public int sub(int a, int b)
18   {
19     return a - b;
20   }
21   
22   /**
23    * Multiplies two integers.
24    */

25   public int mul(int a, int b)
26   {
27     return a * b;
28   }
29   
30   /**
31    * Divides two integers.
32    */

33   public int div(int a, int b)
34   {
35     return a / b;
36   }
37 }
38
Popular Tags