Esempio n. 1
0
 /**
  * prida studenta do paralelky
  *
  * @param s - novy student
  */
 public void addStudent(Student s) {
   if (m_student == null) {
     m_student = new ArrayList<Student>();
   }
   m_student.add(s);
   s.addParalelka(this);
   s.addParalelka(this);
 }
Esempio n. 2
0
 public void setM_student(List<Student> m_student) {
   this.m_student = m_student;
   for (Student student : m_student) {
     student.addParalelka(this);
   }
 }