how to sum a 2d array in java code example
Example: how to sum a 2d array in java
for (int[] Array1 : Array) { //"Array" is the name of my array in this problem
for (int colu = 0; colu < Array.length; colu++) { //"Colu" is the variable
//so change it on your
//code.
sum = sum + Array1[colu];
}
}