KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > MultiplicationProc


1 import org.enhydra.shark.api.internal.toolagent.AppParameter;
2
3 public class MultiplicationProc {
4    public static void execute (AppParameter param1,AppParameter param2,AppParameter result) {
5       try {
6          result.the_value=new Long JavaDoc(((Long JavaDoc)param1.the_value).longValue()*((Long JavaDoc)param2.the_value).longValue());
7 System.out.println("The result of MultiplicationProc is "+result.the_value);
8       } catch (Exception JavaDoc ex) {
9 System.out.println("MultiplicationProc - Problems while executing procedure");
10       }
11    }
12 }
13
Popular Tags