Compartilhar via


ArrayDeque.Pop Method

Definition

Pops an element from the stack represented by this deque.

[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 deque (which is the top of the stack represented by this deque)

Implements

Attributes

Exceptions

Remarks

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

This method is equivalent to #removeFirst().

Java documentation for java.util.ArrayDeque.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