Homework Assignment #7. Assigned NOV 26, due THURS, DEC 4 at 11:59 pm

This problem is not hard. Please look at it as soon as possible. Although arrays will not be on the midterm, familiarity with this problem will help you on the midterm.

Use the random number generator in a Java program to generate n random numbers between zero and nine in a method with the heading public static void generate(int n). The value of n should be defined in a final statement in the main method. Store each of these numbers in successive elements of an array using a for loop. Then using another for loop in method generate, print these random numbers in the reverse order in which they were stored. Thus for example if the value of n is 4 and the numbers generated were 8, 7, 10, and 2, your program would print 2, 10, 7 and 8.

The assignment will focus on the use of Math.random(), for loops and arrays.