CS174: OOP - Drills - Creating the reverse of an array
Explorer
GitHub
Connect to GitHub to push and pull your project files to a repository.
On the page that opens, create a token with repo scope, copy it, then paste it below.
Paste the personal access token you created on GitHub with repo scope.
Click Refresh to load commit history
Exercise Info
Goals
To do proper array indexing
To use loops in concert with arrays
To allocate and populate new arrays
Instructions
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}.