Question: it needs to be in java Your friend's photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed

it needs to be in java

Your friend's photo editing software has stopped working so you volunteer to help. She wants all the pictures reversed in the horizontal direction along the y-axis so that items on the left side of the picture are now on the right side, and vice versa. Pictures are stored as 2-D arrays, where each "pixel" stores a single brightness value. In other words, you need a method that will take a 2-D array and reverse its columns so that the first becomes the last, the second becomes the second to last, and so on. Given the following starter code, write the method to help your friend. 1 2- 3 4 15 public int[][] flipPhoto(int[][] picture), { // Your code here. }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
