VB.Net program to push or insert the item into a stack using the collection
'VB.Net program to push or insert an item into
'a stack using the collection.
Imports System
Imports System.Collections
Module Module1
Sub Main()
Dim stk As New Stack(5)
stk.Push(10)
stk.Push(20)
stk.Push(30)
stk.Push(40)
Console.WriteLine("Elements are inserted successfully")
End Sub
End Module
Elements are inserted successfully
Press any key to continue . . .
Table of Contents