Class MultidimensionalArraysExercises
java.lang.Object
MultidimensionalArraysExercises
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MultidimensionalArraysExercises
public MultidimensionalArraysExercises()
-
-
Method Details
-
populate
public static void populate(double[][] array) Simulates data with 0.000 in the first element and 0.001 in the second, 0.002 in the third etc.- Parameters:
array
- A rectangular or ragged array
-
total
public static double total(double[][] array) Calculates the total of all of the values- Parameters:
array
- A rectangular or ragged array- Returns:
- The sum of all of the values in array
-
main
-