Michigan web hosting - Class System.Collections.Stack Syntax stackvariable.Pop( ) Return Value Object

Class System.Collections.Stack Syntax stackvariable.Pop( ) Return Value Object Description Removes the top item from the stack and returns it as an Object Rules at a Glance Pop removes the top item from the stack and decrements the Count property by one. Pop generates an error if applied to an empty stack. Thus, it’s advisable to determine when a stack is empty by using the Count property before popping the stack. Programming Tips and Gotchas The Peek method returns a reference to the object at the top of the stack, but unlike the Pop method, does not remove it from the stack. See Also Stack.Clear Method, Stack.Peek Method Stack.Push Method Class System.Collections.Stack Syntax stackvariable.Push(obj) obj Use: Required Data Type: Object The item to place in the stack Return Value
Note: If you are looking for inexpensive but high quality provider to host and run your serlvet application check Astra servlet hosting services

Comments are closed.