-
addArray error
can somebody please help me with the following error:
public addArray StudentType ()
{
if (person != null && isNewStudent)
((ArrayList < StudentType >) StudentList).add(indexToInsert,tempStudent);
else
{
((ArrayList < StudentType >) StudentList).add(tempStudent);
do
{
runAgain = JOptionPane.showInputDialog("Enter another student? (Y/N)");
}
while(runAgain.equalsIgnoreCase("Y") && RunAgain.equalsIgnoreCase("N" ));
}
}
Here is the error that I am getting:
cannot find symbol
symbol : class addArray
location: class StudentViewClass
thanks for your help :rolleyes:
-
public addArray StudentType ()
what do you mean by this? what is happening is that you have a method called StudentType with a return type of addArray. but i'm sure thats not what you want.