I’m trying to find the average of the random number in java. atthis moment i’m printing the random number, what i want is to sumall of the observations, and divide by the quantity of them. andthen print them. and if the random number exceeds 8, print warning.the problem in my output is that it doesn’t print the average. anddoesn’t detect the exceeded number correctly as you can see in thelast figure. Thank you.
1)

2)

3)

4)

5)

30
PayPal Gateway not configured
PayPal Gateway not configured