package com.sitdh.master.eaa.main;

import java.util.Vector;

public class A5Department {
	
	public String name;
	
	public String departmentDescription;
	
	public Vector<B5Professor> professors;
	
	public A5Department() {
		professors = new Vector<B5Professor>();
	}
	
	public void addProfessor(B5Professor professor) {
		professors.addElement(professor);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDepartmentDescription() {
		return departmentDescription;
	}

	public void setDepartmentDescription(String departmentDescription) {
		this.departmentDescription = departmentDescription;
	}

	public Vector<B5Professor> getProfessors() {
		return professors;
	}

	public void setProfessors(Vector<B5Professor> professors) {
		this.professors = professors;
	}

}

@@ -33,34 +33,8 @@
 n;%0A%0A
-import java.util.Vector;%0A%0A
 publ
@@ -122,39 +122,32 @@
 tion;%0A%09%0A%09public 
-Vector%3C
 B5Professor%3E pro
@@ -141,28 +141,33 @@
 rofessor
-%3E professors
+ headOfDepartment
 ;%0A%09%0A%09pub
@@ -193,137 +193,43 @@
 %7B%0A%09%09
-professors = new Vector%3CB5Professor%3E();%0A%09%7D%0A%09%0A%09public void addProfessor(B5Professor professor) %7B%0A%09%09professors.addElement(professor
+headOfDepartment = new B5Professor(
 );%0A%09
@@ -553,23 +553,16 @@
 %09public 
-Vector%3C
 B5Profes
@@ -568,148 +568,230 @@
 ssor
-%3E
  get
-Professors() %7B%0A%09%09return professors;%0A%09%7D%0A%0A%09public void setProfessors(Vector%3CB5Professor%3E professors) %7B%0A%09%09this.professors = professors;
+HeadOfDepartment() %7B%0A%09%09return headOfDepartment;%0A%09%7D%0A%0A%09public void setHeadOfDepartment(B5Professor headOfDepartment) %7B%0A%09%09this.headOfDepartment = headOfDepartment;%0A%09%7D%0A%09%0A%09public void displayDepartmentInformation() %7B%0A%09%09
 %0A%09%7D%0A
+%09
 %0A%7D%0A

Add new method for display information