Methods 3 - return


examples


Classwork

1. Write a method summer that takes an array of ints and returns the sum

2. Write a method getGrades that asks the user how many grades there are, makes an array that size, gets values from the user to fill the array, then returns the array.

3. Write a main method that uses getGrades to get a set of grades, and then prints the average of those grades, using summer as a tool