Both methods have a parameter of type double[], and the word grades does not refer to a variable of type double[].

Please see the announcements page for instructions on the use of code tags.