📄 calculatorimpl.java
字号:
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;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -