public static <T> void fill (List<? super T> list, T obj)

Replaces all of the elements of the specified list with the specified element.

This method runs in linear time.

Parameters:
<T>    the class of the objects in the list
list    the list to be filled with the specified element.
obj    The element with which to fill the specified list.

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