Stack.peek

Stack.peek

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized Object peek()
Returns
the object at the top of this stack.
Description
Looks at the object at the top of this stack without removing it from the stack.

Exceptions
EmptyStackException if this stack is empty.