@SuppressWarnings({"rawtypes", "unchecked"})
public static void reverse (List<?> list)

Reverses the order of the elements in the specified list.

This method runs in linear time.

Parameters:
list    the list whose elements are to be reversed.

Exceptions:
UnsupportedOperationException    if the specified list or its list-iterator does not support the set operation.