📄 remotemath.java
字号:
// defines the interface RemoteMath which is used to support
// RMI based simple math operations.
import java.rmi.*;
// The interface must extend the Remote interface to become something
// that RMI can serve up.
public interface RemoteMath extends Remote {
public int Add(int x, int y) throws RemoteException;
public int Sub(int x, int y) throws RemoteException;
public int Mult(int x, int y) throws RemoteException;
public int Div(int x, int y) throws RemoteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -