5) Write the Java method with this header
public static void update(int [][] grid)
grid[][] is a 2-dimensional array with any number of rows andcolumns. It is a rectangular array (i.e., all rows have the samenumber of columns). Each cell of the array contains either a 1 or0, no other integers.
update() checks all cells in the array for this 3 x 3pattern:
0 1 1
0 0 0
1 0 0
When the above pattern is found the middle cell is changed to 1,to get this new pattern:
0 1 1
0 1 0
1 0 0
Write the update() method. 25 points
Expert Answer
An answer will be
PayPal Gateway not configured
PayPal Gateway not configured