Question: Do this in java Eclipse This is how it should start int[][]J= {{1,2},{2,6},{3,5},{2,4},{6,8},{11,12}}; display1DArray(blockStats(J)); Task 4: Block Values 6 6 Create a static method blocksStats
Do this in java Eclipse![Do this in java Eclipse This is how it should start int[][]J=](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4f309b41b8_03366f4f30938ef1.jpg)
This is how it should start
int[][]J= {{1,2},{2,6},{3,5},{2,4},{6,8},{11,12}};
display1DArray(blockStats(J));
Task 4: Block Values 6 6 Create a static method blocksStats that accepts a 6 x 2 integer array and returns a ID double array of length 3 that contains the maximum, mean, and minimum value of the specified indices as shown in the diagram below. You Ust use an enhanced for loop and all calculations must be performed inside the loop. You may create and use any helper methods inside this method. 1 O- 1 2 0 1 2 0 Maximum Value in Block Average Value in Block Minimum Value in Block 1. 2 6 2 3 5 3 2 4 0 1. 2 4 6 8 0 6 4.5 6 5 11 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
