set abstract method

T set(
  1. int index,
  2. T element
)

Replaces the element at the specified position in this list with the specified element.

@return the element previously at the specified position.

Implementation

T set(int index, T element);