Question: 1. Write a method called meth 1 that takes a 2D array (that could be jagged) as an input and returns in a 1D

1. Write a method called meth 1 that takes a 2D array

1. Write a method called meth 1 that takes a 2D array (that could be jagged) as an input and returns in a 1D array containing: the index of the row with the maximum number of elements, the maximum number of elements, the index of row with the largest average, and the largest average. For example: input {(1, 2, 3}, (4), (5, 6, 7, 8), output: (2.0, 4.0, 3.0, 9.5) {9, 10}}

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Java method called meth1 that takes a 2D array which could be jagged as input and returns ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!