?? calculatorimpl.java
字號(hào):
import java.rmi.*;
import java.rmi.server.*;
public class CalculatorImpl extends UnicastRemoteObject implements Calculator{
public CalculatorImpl() throws RemoteException{
super();
}
public long add(long a,long b) throws RemoteException{
return a + b;
}
public long sub(long a,long b) throws RemoteException{
return a - b;
}
public long mul(long a,long b) throws RemoteException{
return a * b;
}
public long div(long a,long b) throws RemoteException{
return a / b;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -