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