caculate.java
来自「J2EE之EJB,RMI多个源码」· Java 代码 · 共 29 行
JAVA
29 行
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 + =
减小字号Ctrl + -
显示快捷键?