Java.Util.Stack.Peek Method
Returns the element at the top of the stack without removing it.

Syntax

[Android.Runtime.Register("peek", "()Ljava/lang/Object;", "GetPeekHandler")]
public virtual Java.Lang.Object Peek ()

See Also

Stack.Pop

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.EmptyStackExceptionif the stack is empty.

Remarks

Returns the element at the top of the stack without removing it.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1