📄 echoimpl.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.echo;
/**
* @author softlab
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class echoImpl extends UnicastRemoteObject implements echo{
/**
* @throws RemoteException
*/
public echoImpl() throws RemoteException {
super();
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see MyRmi.interfaces.echo#echo(int)
*/
public int echo(int i) throws RemoteException {
// TODO Auto-generated method stub
return i;
}
/* (non-Javadoc)
* @see MyRmi.interfaces.echo#echo(java.lang.String)
*/
public String echo(String s) throws RemoteException {
// TODO Auto-generated method stub
return s;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -