I realize that it is Subjects which is being assigned to Classroom Slots.
It is not the Teachers who are being assigned to Classrooms.
And I also realize that Teacher is a property of Subjects:
package inticas;
import java.io.Serializable;
public class Subject implements Serializable{
private String name;
private int maxhours;
private int hoursSoFar;
private String teacher;
public void setName(String n){
name=n;
}
public void setmaxHours(int h){
maxhours=h;
}
public void incrementHours(){
hoursSoFar++;
}
}
And so, I created the Subject class above.
To Do:
Add a Subject Table and implement Subject Adding functionality.