?? rmiserverimpl.java
字號:
package main;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import inter.RMIServerInterface;
/**
* 實現了 RMIServerInterface 接口
*
* @author WangLiang
*
*/
public class RMIServerImpl extends UnicastRemoteObject implements
RMIServerInterface {
/**
*
*/
private static final long serialVersionUID = 2841679783751283445L;
protected RMIServerImpl() throws RemoteException {
super();
// TODO Auto-generated constructor stub
}
//返回的值必須是可序列化的
public int INTAdd(int a, int b) throws RemoteException {
return a+b;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -