CS174: OOP - Drills - Creating the reverse of an array

Developed by Professor Tralie and Professor Mongan.


Exercise Goals

The goals of this exercise are:
  1. To do proper array indexing
  2. To use loops in concert with arrays
  3. To allocate and populate new arrays
Fill in the method getReverseArray in ArrayUtils.java to return a new array which is the reverse of a given array. For example, the array {0, 5, 2, 3} would turn into the array {3, 2, 5, 0}.
Welcome to our online modules system! Be sure to log in with your Urinus ID before you proceed. For example, Professor Tralie's ID is ctralie. If you are not an Ursinus student, that's fine! Just make something up, and you can still run everything