📄 caculate.java
字号:
import java.rmi.*;
import java.rmi.server.*;
public class Caculate extends UnicastRemoteObject implements MulInt
{
public int cacu(int a,int b)
{
return a-b;
}
public Caculate() throws RemoteException
{
super();
}
public static void main(String args[])
{
System.setSecurityManager(new RMISecurityManager());
try
{
Caculate cal=new Caculate();
Naming.rebind("Jisuan",cal);
}
catch (Exception re)
{
System.out.println("RE:" + re);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -