Language

JavaList<T>.Remove(T) Method

Definition

Removes the first matching element from the list.

public bool Remove(T item);
override this.Remove : 'T -> bool

Parameters

item
T

The element to remove.

Returns

true if an element was removed; otherwise, false.

Implements

Remarks

In .NET for Android 8 through 10, a missing item can cause an out-of-range exception instead of returning false.

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