Package java.util
Class ArrayList

Public Method set

Object set(int index, Object element)

Overrides:

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

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

Example

   aList.set(3, element);

The example above replaces 4 element with the specified element.