📄 addimpl.java
字号:
/*
* Created on 2008-5-22
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package MyRmi.implement;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import MyRmi.interfaces.add;
/**
* @author softlab
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class addImpl extends UnicastRemoteObject implements add{
/**
* @throws RemoteException
*/
public addImpl() throws RemoteException {
super();
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see MyRmi.interfaces.add#add(int, int)
*/
public int add(int a, int b) throws RemoteException {
// TODO Auto-generated method stub
return a + b;
}
/* (non-Javadoc)
* @see MyRmi.interfaces.add#add(double, double)
*/
public double add(double a, double b) throws RemoteException {
// TODO Auto-generated method stub
return a + b;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -