📄 trader.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -