studentinfoapp.java

来自「基于RMI的学生成绩管理程序,实现了线程,事件模型.」· Java 代码 · 共 35 行

JAVA
35
字号
/*
 * StudentinfoApp.java
 *
 * Created on 2005年11月23日, 下午1:42
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */



/**
 *
 * @author 和尚
 */
import java.net.*;
import java.rmi.*;
public class StudentinfoApp {
    public static void main(String args[]) {
           StudentinfoApp s = new StudentinfoApp();              
	   try {
                Tutor t = new Tutor();
		StudentinfoImpl studentinfoImpl;
		studentinfoImpl = new StudentinfoImpl();
		Naming.rebind("Studentinfo",studentinfoImpl);
 
                t.addScoreListener(studentinfoImpl);
	       }
	   catch(Exception ex) {
		ex.printStackTrace();
	   }
	}
    
}

⌨️ 快捷键说明

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