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]; } }
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]; } }
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us