Correct order

  • 7
  • Locked
Let's write a utility for working with arrays. The main functionality is ready: the printArray() method displays all the elements of the array on the console. What is left for you is just a trifle: implement the reverseArray() method. It should reverse the order of the elements in the array. The met
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Hoist
Level 14 , San Diego, United States
9 December 2021, 05:29
There are other techniques / methods to solve this. Print the Elements of an Array in Reverse Order. No need to use an additional array, and it is not converted into an array list. Instead the array elements are put into reverse order in-place. This means that they are, in fact, swapped. https://codegym.cc/groups/posts/reverse-an-array-in-java?fbclid=IwAR0LpZd6qKVhB2flrPndudf8isJ4V4Hyw1QX9Z7xacHNu2mgZOna-RUbwiU