Writea method called arrayAvg that accepts as an argument an array of numbers andreturns the average of the numbers in that array. Create an array to test yourcode with and call the method from main to print the average to the screen.
Don’t waste time
Get a verified expert to help you with Dr.Java lab source