Replaces all of the elements of the specified list with the specified element.
This method runs in linear time.
<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. |
UnsupportedOperationException | if the specified list or its
list-iterator does not support the set operation. |
Diagram: Collections