Collections.List.indexOf()

Signature

int indexOf ( Object list ,Object element )

Domain

ACTION

Description

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

Parameters

NameTypeDescription
listObjectThe List object
elementObject Element to search for

Returns

TypeDescription
intThe index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element

Cautions

none