📄 helloimpl.java
字号:
import java.rmi.RemoteException;
import java.rmi.server.RMIClientSocketFactory;
import java.rmi.server.RMIServerSocketFactory;
import java.rmi.server.UnicastRemoteObject;
import javax.rmi.PortableRemoteObject;
//Service Class
//实现hello接口和java.io.Serializable接口
public class helloImpl extends PortableRemoteObject implements hello {
public helloImpl() throws RemoteException {
// TODO Auto-generated constructor stub
}
public double hello(String exp) throws RemoteException
{
Eval eval = new Eval();
double result = eval.eval(exp);
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -