calculatorremote.java

来自「100多M的J2EE培训内容」· Java 代码 · 共 26 行

JAVA
26
字号
package bible.webservices.rpc;import java.rmi.*;import javax.ejb.*;/** * The Remote Interface for the Calculator Statelss Session Bean. */public interface CalculatorRemote extends EJBObject {  /**   * Returns the sum of two long primitives.   */  public long add(long amount1, long amount2) throws RemoteException;  /**   * Returns the difference of two long primitives.   */  public long subtract(long amount1, long amount2) throws RemoteException;  /**   * Returns the product of two double primitives.   */  public double multiply(double amount, double factor) throws RemoteException;  /**   * Returns the quotient of two double primitives.   */  public double divide(double amount, double divisor) throws RemoteException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?