trader.java
来自「java的一系列产品中包括jsme,jmse,j2ee,本文件提供j2ee实现的」· Java 代码 · 共 26 行
JAVA
26 行
package stocktrader;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface Trader extends EJBObject {
/**
* Buys shares of a stock for a named customer.
*/
public TraderResult buy(String customerName, String stockSymbol, int shares)
throws ProcessingErrorException, RemoteException;
/**
* Sells shares of a stock for a named customer.
*/
public TraderResult sell(String customerName, String stockSymbol, int shares)
throws ProcessingErrorException, RemoteException;
/**
* Returns the current balance of a trading session.
*/
public double getBalance() throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?