Homework Assignment #7. Assigned DEC 9, due MON, DEC 13 at 11:59 pm
The final is WED, DEC 22 at 10:00 am in rm 109 WWH

This problem is not hard. Please look at it as soon as possible. Familiarity with this problem will help you on the final.

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.