average of array in java November 10, 2022 by gangforcode In this article we are going to find average of given array of numbers. Example:- Let’s a given array={2,4,6,8}, then the average of given array will be 5. Steps:- Java code to find average of array:- Output:-