Hi,

I am having a problem with some code for part of a project I have included
it below. The problem I am having is to do with (List all subjects) method,
I need to return a vector of subjects and I am having a problem with this
method any help would be appreciated.

Thanks


***********************************************************************
import java.io.*;
import java.util.*;

public class Student
{
private Vector mSubjects = new Vector();
private String mStudentnumber;
private String mFirstname;
private String mLastname;
private boolean mConcession;

public Student(String Studentnumber,String Firstname
, String Lastname, boolean Concession)
{
mStudentnumber = Studentnumber;
mFirstname = Firstname;
mLastname = Lastname;
mConcession = false;
}

public String GetName()
{
return mFirstname + ' ' + mLastname;
}

public String GetNumber()
{
return mStudentnumber;
}

public boolean Status()
{
return mConcession;
}

public boolean AddSubject(Subject InSubject)
{
if (mSubjects.contains(InSubject))
{
return false;
}
else
{
mSubjects.addElement(InSubject);
return true;
}
}

public boolean DeleteSubject(Subject InSubject)
{
if (mSubjects.contains(InSubject))
{
mSubjects.removeElement(InSubject);
return true;
}
else
{
return false;
}
}

public Subject FindSubject(String GetNumber)
{
int Num = mSubjects.size();
boolean found = false;
Subject InSubject = null;
for(int i = 0; i < Num && !found; i++)
{
InSubject = (Subject)mSubjects.elementAt(i);
if (InSubject.GetNumber().equals(GetNumber))
{
found = true;
}
}
if(!found)
InSubject = null;
return InSubject;
}


public int NumberSubjects()
{
return mSubjects.size();
}

public Subject ListSubjects()
{

}
}

***********************************************************************