Stack.Push(Object) Method

Definition

Pushes an item onto the top of this stack.

[Android.Runtime.Register("push", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetPush_Ljava_lang_Object_Handler")]
public virtual Java.Lang.Object? Push (Java.Lang.Object? item);
[<Android.Runtime.Register("push", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetPush_Ljava_lang_Object_Handler")>]
abstract member Push : Java.Lang.Object -> Java.Lang.Object
override this.Push : Java.Lang.Object -> Java.Lang.Object

Parameters

item
Object

the item to be pushed onto this stack.

Returns

the item argument.

Attributes

Remarks

Pushes an item onto the top of this stack. This has exactly the same effect as: <blockquote>

addElement(item)

</blockquote>

Java documentation for java.util.Stack.push(E).

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