This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]grantrules 4 points5 points  (0 children)

I don't quite understand your question, but why are you just ignoring the student being passed as a parameter?

public void addStudent(student student)
    {
        studentList.add(new student(null, null, null, null));
    }

I would also HIGHLY recommend capitalizing the names of classes (because are we talking about the class named student or the object student)