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

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

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!