Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java time!

Name: Roy 2010-07-13 22:17

Getting a NullPointerException for this snippet, specifically at the "if" statement line. I have initialized and giving values to each of the variables, I cannot for the life of me figure out what is wrong.

    public boolean gradeQuiz(char[] studentAnswers)
    {
        int     l             = 0;
        boolean passedQuiz = false;
        missedQuestions    = new int[ARRAY_SIZE];
       
        for (int i = 0; i < ARRAY_SIZE; i++)
        {
            if (studentAnswers[i] == correctAnswers[i])
            {
                l++;
                missedQuestions[l] = i + 1;
                correct++;
            }

Name: Anonymous 2010-07-14 13:33

>>14

Richard Stallman touched my junk liberally. he strapped me in to his HURD and he couldnt keep his offensive hands off of me. he was performing many red flag touches. i couldnt believe what the fuck was going on. i told RMS the open source community would not approve of one of the leading free-software figures touching an underage kid for free.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List