Question: Write a method named reverse that accepts an array of integers as a parameter and modifies the array to be in reverse order. For example,

Write a method named reverse that accepts an array of integers as a parameter and modifies the array to be in reverse order. For example, if the array a stores {10, -2, 33, 55, 9), the call of reverse (a) should modify it to store (9, 55, 33, -2, 10)

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!