Language

JavaList.LastIndexOf(Object) Method

Definition

Finds the last occurrence of an element in the Java list.

public virtual int LastIndexOf(object item);
abstract member LastIndexOf : obj -> int
override this.LastIndexOf : obj -> int

Parameters

item
Object

The element to find.

Returns

The index of the last matching element, or -1 if it is not found.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to