Question: Please help, Thank you! ** In java please ** CSC 201 2D Arrays Manipulation 1) Write a class Manipulating2DArray java that has the method add

 Please help, Thank you! ** In java please ** CSC 201 Please help, Thank you! ** In java please **

CSC 201 2D Arrays Manipulation 1) Write a class Manipulating2DArray java that has the method "add To10" (below) that Computer Science I accepts a 2 dimensional array of integers. Each row will have exactly one element with a value of 0. For each row, modify this element so that the sum of all numbers in the row is 10. No other elements should be modified public static void addTo10 (int[ [] array) i //Your code here 2) Implement a method "setHints" (below) that accepts a 2 dimensional array of integers containing 1s and 0s and modifies it according to the following (minesweeper) criteria: to hint of its presence, for each mine (a value - 1) increment by 1 the value of all its surrounding squares; if another mine exists in one of these sq unchanged uares, its value is left public static void setHints (int[]l] array) t //Your code here The figure below illustrates the state of an array at the beginning of the method (left) and at the end of the method (right) after all the hint values have been added 1 1 0 00 0 0 0 1 1 2 1 0 0 2 1 3 1 00 0 10 -1 JUnit Tests Each method above will be tested with JUnit test cases. It will will be discussed in class. These JUnit test cases are complete and should not be modified. In addition, your programs should not hard-code any answers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!