Following the examples of listing 9.8 and 9.9 in Section 9.9 in the textbook, write a program in Java to compute the following properties of automobiles: average gas mileage, lowest price, the lates

public class TestArray { public static void main (String [] args) { //Array of primitive type values double [] array1 = new double [3]; for (int i = 0; i < array1.length ; i++) { array1 [i] = (int) (Math.random () * 10); System.out.print (array1 [i] + " "); } System.out.println (); //Array of objects Array [] array = new Array [3]; for (int i = 0; i < array.length; i ++) { array [i] = new Array ((int)(Math.random () * 10)); System.out.print (array [i].radius + " "); } System.out.println ("\nThe area is: " + array[1].getArea ()); } } class Array { double radius = 1; Array (){ } Array (double newRadius){ radius = newRadius; } double getArea () { return radius * radius * Math.PI; } }