The instruction is
Implement the method
public static double avg(int[][] a), which returns the average of the values stored ina.
So, I guess I have to write
public static double avg(int[][] a) { // two dimensional arrays?
// some codes
return a;
}
I don’t understand the sentence “which returns the average of the values stored in a”. When I don’t even know the values stored in a, how can I get the average?