You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a Java program that does the following: 1- Creates an array of integers with random values between 1 and 1000 (inclusive) and a size of 20. 2- Finds and prints the smallest and biggest values in the array. 3- Calculates and prints the average value of all the elements in the array.