Question: Do i use a while loop? please help TASK: Write a static method called reverse with one int[] parameter nums. It should reverse the elements
Do i use a while loop? please help
TASK: Write a static method called reverse with one int[] parameter nums. It should reverse the elements of nums. It should not return anything - it should modify nums in place. Sample Input: 1 2 3 4 5 6 Sample Output: 6 5 4 3 2 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
