Results 1 to 2 of 2

Thread: addArray error

  1. #1
    robocop is offline Member
    Join Date
    Feb 2009
    Posts
    14
    Rep Power
    0

    Question 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:

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    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.

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2009, 09:53 AM
  2. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •