An open API service indexing awesome lists of open source software.

https://github.com/msh-trojan/java_arrays_4

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.
https://github.com/msh-trojan/java_arrays_4

arrays average iteration java loops maximum minimum randomness

Last synced: 6 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

Concepts of Java used in this Program:
Loops and iterations
If statements
Random value generating
Arrays