13
1
Option Strict On
2
Imports System.Collections.Generic
3
Public Module Module1
4
Public Sub Main()
5
'Declare a Stack(Of String) to represent a deck of cards
6
Dim deck As Stack(Of String) = New Stack(Of String)
7
8
'Add three items to the top of the deck
9
deck.Push("Jack of Hearts")
10
deck.Push("Ace of Spades")
11
deck.Push("Two of Clubs") 'This is the top-most item
12
End Sub
13
End Module
Cached Result
Value
Item
Item