⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client.java

📁 本书中的源代码是以JBuilder工程形式组织的
💻 JAVA
字号:
import java.rmi.*;
public class  Client
{
	public static void main(String[] args) 
	{
      if (System.getSecurityManager() == null)
         System.setSecurityManager(new RMISecurityManager());
      try {
         DisplayInterface obj = (DisplayInterface) Naming.lookup("/Display");
         String message = obj.displayName();
         System.out.println(message);
      } catch (Exception e) {
         System.out.println("Client exception: " +e);
      }
   }
}

⌨️ 快捷键说明

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