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

📄 student.java

📁 Eclipse RCP应用系统开发方法与实战源代码
💻 JAVA
字号:
package rcpbook.swtjface.sample;

public class Student {

	public String classname;

	public String no;

	public String name;

	public String tel;

	public String teacherincharge;

	public Student[] children = new Student[0];

	public Student parent = null;

	public Student(String no, String name, String tel) {
		this.no = no;
		this.name = name;
		this.tel = tel;
	}

	public Student(String classname, String teacherincharge, Student[] children) {
		this.classname = classname;
		this.teacherincharge = teacherincharge;
		this.children = children;
		for (int i = 0; i < children.length; i++) {
			children[i].parent = this;
		}
	}

	public static Student[] sample() {
		return new Student[] {
				new Student("国贸051", "张帆", new Student[] {
						new Student("05101", "张三", "87652314"),
						new Student("05102", "里斯", "87622314") }),
				new Student("会计062", "可可", new Student[] {
						new Student("06201", "王二麻子", "87352314"),
						new Student("06202", "赵留", "87652314"),
						new Student("06203", "了了", "88652314") }), };
	}
}

⌨️ 快捷键说明

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