Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started