Hi! I'm trying to make a java method that takes a double array (3x3) and finds the average of the numbers around each value in the array then prints it out. I have no idea what kind of method I should use to do this. So far, I havepublic class A4Q3 { public static void main(String[] args) { int row = 3; int column = 3; int[][] values = new int[row][column]; int[][] values = { { 1, 2, 3, }, { 4, 5, 6, }, { 7, 8, 9, } }; public static double neighborAverage(int[][] values, int row, int column) {
But now I'm completely stuck. Any help is greatly appreciated!
Thanks
Scorks