Microsoft SDK for Java

List.peekStack

Retrieves the topmost item in the stack without removing it. This retrieves the item at the end of the list.

Syntax

public Object peekStack()

Return Value

Returns the last item in the list, or returns null if there are no items.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.