Menu

Write Generic Method Greplace Takes 2d Array Generic Elements Two Scalars Type Array Eleme Q43842966

Write a generic method gReplace() that takes a 2D array ofgeneric elements and two scalars of the same type as the arrayelements. The function must replace all occurrences of the firstscalar with the second one.

(scalar: given int x, x is a scalar of type int)

with java

Expert Answer


Answer to Write a generic method gReplace() that takes a 2D array of generic elements and two scalars of the same type as the arra…

OR