1) Write to class “Debigging”, a method “setHints” (below) thataccepts a 2 dimensional array of integers containing -1s and 0s andmodifies it according to the following (minesweeper) criteria: tohint of its presence, for each mine (a value -1) increment by 1 thevalue of ll its surrounding squares; if another mine exists in oneof these squares, its value is left unchanged.
public static void setHints( int [] [] array) {
//your code here
}
the figure below ilustrates the state of an array at the begginigof the method (left) and at the end of the method (right) after allthe hint values have
PayPal Gateway not configured
PayPal Gateway not configured