Partager via


Stack.Pop Method

Definition

Removes the object at the top of this stack and returns that object as the value of this function.

[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 object at the top of this stack (the last item of the Vector object).

Attributes

Exceptions

if the stack is empty.

Remarks

Removes the object at the top of this stack and returns that object as the value of this function.

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