helloimpl.java

来自「JAVA分布式程序学习的课件(全英文)」· Java 代码 · 共 22 行

JAVA
22
字号
import java.rmi.*;
import java.rmi.server.*;

/**
 * This class implements the remote interface 
 *    HelloInterface.
 * @author M. L. Liu
 */

public class HelloImpl extends UnicastRemoteObject
     implements HelloInterface {
  
   public HelloImpl() throws RemoteException {
      super( );
   }
  
   public String sayHello(String name) 
                 throws RemoteException {
      return "Hello, World!" + name;
   }
} // end class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?