Question: Directions: Write the following methods in a Java class called ArrayProblemet. You may need to make a new project for it. I will be running
Directions: Write the following methods in a Java class called ArrayProblemet. You may need to make a new project for it. I will be running these methods using a separate class, so make sure that you have named the methods exactly as I have. I will take off points if the code doesn't run predictably. Testing: I encourage you to test this code out. You can do this by creating a main method in your class, and declaring several arrays, and passing them into the methods to see if they have the correct result. 1. Write a static method called avgArray that takes in an array of ints and returns the average of all the values. 2. Write a static method called maxvn that takes in an array of ints and returns the largest of the values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
