public String toString() { Subject subject = null; try { subject.setSubject(ReadSubjects.getSubj(subjectId)); } catch (ClassNotFoundException e) { logger.error(e); } return testId + testName + " " + subject.getSubject(); }
@Override public void visitor(Subject sub) { System.out.println("visit the " + sub.getSubject()); }