Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Student andrei=new Student("Andrei","andrei@gmail.com");
- Student mihai=new Student("Mihai","mihai@gmail.com");
- Student george=new Student("George","george@gmail.com");
- Student ana=new Student("Ana","ana@gmail.com");
- Lecturer popescu=new Lecturer("Popescu","popescu@gmail.com",3);
- Lecturer ionescu=new Lecturer("Ionescu","ionescu@gmail.com",2);
- Lecturer andries=new Lecturer("Andries","andries@gmail.com",4);
- Lecturer dumea=new Lecturer("Dumea","dumea@gmail.com",2);
- Project matlab=new Project("Matlab",2,dumea);
- Project sgbd=new Project("SGBD",2,popescu);
- Project java=new Project("JAVA",2,popescu);
- Project acso=new Project("ACSO",3,ionescu);
- Project crypto=new Project("Crypto",2,andries);
- Project fai=new Project("FAI",2,andries);
- andrei.addPreference(java);
- andrei.addPreference(sgbd);
- andrei.addPreference(crypto);
- andrei.addPreference(acso);
- mihai.addPreference(crypto);
- mihai.addPreference(fai);
- mihai.addPreference(matlab);
- george.addPreference(matlab);
- george.addPreference(crypto);
- george.addPreference(sgbd);
- george.addPreference(fai);
- ana.addPreference(sgbd);
- ana.addPreference(matlab);
- ana.addPreference(acso);
- ana.addPreference(crypto);
- popescu.addPreference(mihai);
- popescu.addPreference(george);
- popescu.addPreference(andrei);
- popescu.addPreference(ana);
- ionescu.addPreference(george);
- ionescu.addPreference(mihai);
- ionescu.addPreference(andrei);
- andries.addPreference(andrei);
- andries.addPreference(george);
- andries.addPreference(ana);
- dumea.addPreference(ana);
- dumea.addPreference(andrei);
- dumea.addPreference(george);
- allStudentsGlobal.addElement(george);
- allStudentsGlobal.addElement(ana);
- allStudentsGlobal.addElement(mihai);
- allStudentsGlobal.addElement(andrei);
- allLecturersGlobal.addElement(dumea);
- allLecturersGlobal.addElement(andries);
- allLecturersGlobal.addElement(ionescu);
- allLecturersGlobal.addElement(popescu);
- allProjectsGlobal.addElement(fai);
- allProjectsGlobal.addElement(crypto);
- allProjectsGlobal.addElement(acso);
- allProjectsGlobal.addElement(java);
- allProjectsGlobal.addElement(sgbd);
- allProjectsGlobal.addElement(matlab);
- mainProblem.allocStudent();
- System.out.println("Student preferences:");
- Iterator <Student> it=allStudentsGlobal.iterator();
- while(it.hasNext()){
- System.out.println(it.next().getProject().getNume());
- }
- System.out.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement