helloimpl.java

来自「java rmi实验 stubdownload实现 简单的实现stub下载功能」· Java 代码 · 共 20 行

JAVA
20
字号
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() throws RemoteException {
      return "Hello, World!";
   }
} // end class

⌨️ 快捷键说明

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