JavaListindexOf

Returns the index of the first occurrence of the specified value.

Syntax

list.indexOf(obj)