Share via


LinkedList.Pop Method

Definition

Pops an element from the stack represented by this list.

[Android.Runtime.Register("pop", "()Ljava/lang/Object;", "GetPopHandler")]
public virtual Java.Lang.Object? Pop ();
[<Android.Runtime.Register("pop", "()Ljava/lang/Object;", "GetPopHandler")>]
abstract member Pop : unit -> Java.Lang.Object
override this.Pop : unit -> Java.Lang.Object

Returns

the element at the front of this list (which is the top of the stack represented by this list)

Implements

Attributes

Remarks

Pops an element from the stack represented by this list. In other words, removes and returns the first element of this list.

This method is equivalent to #removeFirst().

Added in 1.6.

Java documentation for java.util.LinkedList.pop().

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

See also