you never actually set your average. you read in all the scores, but you never set the average.
Just change the last line from
CODE
System.out.println("\nThe grade average is " + two.format(getmyAverage()));
to
CODE
System.out.println("\nThe grade average is " + two.format(getmyAverage(floatArray1)));
This way will get you the desired result, but it doesn't set the average either.
Another solution is to add a line in the readList method:
CODE
public void readList(float[] floatArray1)
{
for
(int i = 0; i < floatArray1.length; i++) // start i out as 0 and increment by one
{printList(i,floatArray1); } // call the printList method for output
setmyAverage(getmyAverage(floatArray1));
} // End of readList method
This post has been edited by thenovices: 6 Jun, 2008 - 08:45 PM