How to find average of elements in 2d array JAVA? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need help with the following program: "Write a method that will take a two-dimensional array of doubles as an input parameter & return the average of the elements of the array." Can anyone tell me how to go about it? My current code: public static double average(float arr[][]) {