Click or drag to resize
ResizingArrayStackItemPeek Method
Returns (but does not remove) the item most recently added to this stack.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Item Peek()

Return Value

Type: Item
the item most recently added
Exceptions
ExceptionCondition
InvalidOperationExceptionif the stack is empty
See Also