remotemath.java

来自「this gives details of the network progra」· Java 代码 · 共 17 行

JAVA
17
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?