Joined
Last Seen
-4 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.73K
1 Posted Topic
import java.util.Arrays; import java.util.List; class Welcome { int[] array = {5, 6, 7, 8}; System.out.printf("AVERAGE of array %s is %s%n", Arrays.toString(array), findAverage(array)); } private static double findAverage(int[] values) { double result = 0; for (int value : values) { result += value; } return result / values.length; }
The End.
3456_1