📜  如何在java代码示例中对二维数组求和

📅  最后修改于: 2022-03-11 14:52:04.491000             🧑  作者: Mango

代码示例1
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];
    
    }
            
}