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 and print the
values. 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.