2015 FRQ
//1.
class frq1{
public static int 2darraySum(int[][] array){
int sum = 0;
for(int row = 0; row < array.length; row++){
for(int column = 0; column < array[row].length; column++){
sum += array[row][column];
}
}
return sum;
}
public static int arraySum(int[] array){
int sum = 0;
for(int i = 0; i < array.length; i++){
sum += array[i];
}
return sum;
}
public static void isDiverse(){
}
public static void main(String args[]){
int[] jesus2 = {1,2,3};
int[][] jesus = {{1,2,3},{3,3,4},{4,4,4}};
System.out.println(arraySum(jesus2));
}
}
frq1.main(null);