Here is the first question

Question 1:

Date: Sat, 8 Nov 2003 10:55:52 -0800 (PST)
To: wagner@cs.utsa.edu
Subject: null pointer exception

How do you fix a 'null pointer exception error'?  I
thought I was just building my findMax worng, but I
can't figure it out.

Reply: This means trying to make use of a pointer (reference) that hasn't been allocated. Suppose you had a Student class with various fields, and declared Student s1; Then suppose you tried to reference s1.getName() or some such, assuming Student had such a field. But s1 has value null until you set s1 = new Student ( ... ); In the case of project 3, you have an array of classes of type ThreeHalvesRun. In addition to creating the array with new, you need to be sure you create each individual array element (also with new). In project 3, it makes no sense to have a run starting with 0, so perhaps you left off allocating element 0, but perhaps your findMax function is referring to an array element 0. -- Neal Wagner