Returns the index within the specified Array of the first occurence of the
given object, starting at the specified index, and testing for equality using the
Java java.lang.Object.equals()
method.
Returns -1 if the object is not found.
Parameters:
a
The Array to be searched in.
obj
The object to search for.If this parameter is
null
, the function will seek the first occurence ofnull
element.
fromIndex
The index to start the search from. If not specified, 0 is assumed.
See Also:
lastIndexOf()
Tip:
You may call this function in a method-like style:
a.indexOf(obj,fromIndex)