Question: in java Write a function, named changeEvensOdds that takes as parameters a 2D array of integers, number of rows and number of columns. The function

in java
Write a function, named changeEvensOdds that takes as parameters a 2D array of integers, number of rows and number of columns. The function adds one to all odd numbers so that they become even and subtract one from all even numbers so that they become odds. If the number is ZERO, it leaves it as it is. The function doesn't display or return any value. For example, if the array contains the following: Then, after passing it to the function, it becomes: Write a main method to test your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
