Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 7 Problems
Java Reference Sheet
reverse
Objective: Write program code to create, traverse, and manipulate elements in 1D array or ArrayList objects.
Complete the method reverse which reverses the order of the given list (parameter).
For example, if the list contained [1 2 3]
, the new order becomes [3 2 1]
.
The following are methods of a list that can be used to manipulate the contained data.