removeElementAt()

Remove an element at a particular position in this business object array.

Syntax

void removeElementAt(int index)
 

Notes

After an element is removed from the array, the array resizes, possibly changing the indexes of existing elements.

Parameters

index
An integer representing the element's position within the array. The first element in an array is at position zero (0), the second element is at position 1, the third is at position 2, and so forth.

Exceptions

CollaborationException--The removeElementAt() method can set the following exception type for this exception:

Examples

The following example deletes the sixth business object in the array items.

items.removeElementAt(5);
 

Copyright IBM Corp. 2003, 2004