Question: Finish the problem. Please use the Easiest method possible! 1 2 import java.util.Arrays; public class ArrayPractice{ public static void main(String[] args) { int[] a =

Finish the problem. Please use the Easiest method possible!  Finish the problem. Please use the Easiest method possible! 1 2

1 2 import java.util.Arrays; public class ArrayPractice{ public static void main(String[] args) { int[] a = {3, 1, 9, 8, 2, 4, 7}; int[] b = {11, 3, 1, 8, 9, 9, 3, 4, 5}; int[] c = {9, 1, 3, 2, 8, 4, 3, 9, 1, 12, 15, 16}; int[] d = {3, 1, 9, 8, 2, 4, 7}; int[] e = {3, 1, 9, 8, 2, 4, 7, 8}; System.out.println("Testing max method:"); System.out.println(max(a) + (should be 9)"); System.out.println(max(b) + (should be 11)"); System.out.println(max(c) + " (should be 16)"); System.out.println(); es 13 15 System.out.println("Testing average method:"); System.out.println(average(a) + (should be w.857)"); System.out.println(average(b) + (should be -5.889)"); System.out.println(average (c) + (should be ~6.917)"); System.out.println(); 18

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!