Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Destranix
2 years ago

Your method has the following signature:

 double addUp(double[][] theArray, double max);

You should add up all double values ​​obtained via "theArray." The "max" parameter is currently ignored.

Remember to check whether the input is valid (ie whether "theArray" is null and whether its respective components are null).