Reverses the order of the elements in the specified list.
This method runs in linear time.
list | the list whose elements are to be reversed. |
UnsupportedOperationException | if the specified list or
its list-iterator does not support the set operation. |
Diagram: Collections