Question: The reverse method in Section 7.7 reverses an array by copying it to a new array. Rewrite the method that reverses the array passed in
The reverse method in Section 7.7 reverses an array by copying it to a new array. Rewrite the method that reverses the array passed in the argument and returns this array. Write a test program that prompts the user to enter ten numbers, invokes the method to reverse the numbers, and displays the numbers.
Step by Step Solution
3.35 Rating (167 Votes )
There are 3 Steps involved in it
Output List elements after reverse 8 7 6 5 4 3 2 1 program reverses the elements ... View full answer
Get step-by-step solutions from verified subject matter experts
