jblight
May 12th, 2008, 12:10 PM
Hey everybody, currently working on a university project which is asking us to develop a student mentoring program that can create students assign them to a mentoring program and assign mentees and mentors to one another. One of the methods that we are being asked to include is
public Mentor getMentor(String id) which takes a parameter of a student id and returns a Mentor object if the Student found (if one exists) is in fact a Mentor, or it returns null if there is no such student, or the student is not a mentor.
Now all the classes are set up and the student id is a String variable called studNumber
Student
Mentoring
Mentor
Mentee
How could i do this :(
public Mentor getMentor(String id) which takes a parameter of a student id and returns a Mentor object if the Student found (if one exists) is in fact a Mentor, or it returns null if there is no such student, or the student is not a mentor.
Now all the classes are set up and the student id is a String variable called studNumber
Student
Mentoring
Mentor
Mentee
How could i do this :(