s.Push(”Chopin”) s.Push (”Mozart”) s.Push (”Beethoven”) ‘ Is an (Jboss web hosting)
s.Push(”Chopin”) s.Push (”Mozart”) s.Push (”Beethoven”) ‘ Is an item in the stack? MsgBox(”Beethoven in stack: ” & CStr(s.Contains(”Beethoven”))) ‘ Peek at the first (top) item on the stack MsgBox(”First item in stack is: ” & s.Peek.ToString) ‘ Send stack to an array and display all items Dim s() As Object = s.ToArray( ) Dim i As Integer For i = 0 To UBound(s) Debug.WriteLine(CStr(s(i))) Next ‘ Clear stack s.Clear( ) VB .NET/VB 6 Differences The Stack object is new to the .NET Framework. See Also Collection Class, Hashtable Class, Queue Class Stack.Clear Method Class System.Collections.Stack Syntax stackvariable.Clear( ) Return Value None Description Removes all entries from the stack. See Also Stack.Pop Method Stack.Contains Method
Note: If you are looking for cheap and quality provider to host and run your java application check Astra java hosting services