echoclient.java
来自「程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件」· Java 代码 · 共 19 行
JAVA
19 行
package questions.c16;
import java.io.*;
import java.rmi.Naming;
import java.rmi.RMISecurityManager;
/** An client program that uses the RemoteEcho
*/
public class EchoClient {
public static void main( String[] args ) {
if ( System.getSecurityManager() == null ) {
System.setSecurityManager(
new RMISecurityManager() );
}
try {
// your code here
} catch ( Exception x ) {
x.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?