using System;
using System.Collections.Generic;
class SomeBooks
{
public static void Main()
{
// Queue<string> colBestSellers = new Queue<string>();
// Console.WriteLine("Adding Books to my Collection.");
// colBestSellers.Enqueue ("The Heist: A Novel (Gabriel Allon)");
// colBestSellers.Enqueue ("The Book of Life: A Novel (All Souls Trilogy)");
// colBestSellers.Enqueue ("Tom Clancy Support and Defend (A Campus Novel)");
// colBestSellers.Enqueue ("A Prefect Life: A Novel");
// colBestSellers.Enqueue ("The Goldfinch: A Novel");
// Console.WriteLine("\nDumping All Books from Collection");
// foreach (string appName in colBestSellers)
// {
// Console.WriteLine(" " + appName);
// }
// Console.WriteLine("\nRemoving Two Items from Queue");
// colBestSellers.Dequeue();
// colBestSellers.Dequeue();
// Console.WriteLine("\nDumping All Books from Collection");
// foreach (string appName in colBestSellers)
// {
// Console.WriteLine(" " + appName);
// }
// Console.WriteLine("\nAdding three new items to my book collection");
// colBestSellers.Enqueue ("Act of War: A Thriller");
// colBestSellers.Enqueue ("The Silkworm (A Cormoran Strike Novel)");
// colBestSellers.Enqueue ("Invisible");
// Console.WriteLine("\nDumping All Books from Collection");
// foreach (string appName in colBestSellers)
// {
// Console.WriteLine(" " + appName);
// }
// Console.WriteLine("")
Stack stkBestSellers = new Stack();
stkBestSellers.Push ("The Heist: A Novel (Gabriel Allon)");
stkBestSellers.Push ("The Book of Life: A Novel (All Souls Trilogy)");
stkBestSellers.Push ("Tom Clancy Support and Defend (A Campus Novel)");
stkBestSellers.Push ("A Prefect Life: A Novel");
stkBestSellers.Push ("The Goldfinch: A Novel");
Console.WriteLine("My stack of books contains:");
foreach(string bookName in stkBestSellers) {
Console.WriteLine(" " + bookName);
}
// Console.WriteLine("Just got a copy of SnagIt 12! Let's get Pop SnagIt 11");
// stkBestSellers.Pop();
// Console.WriteLine("And let's Push SnagIt 12 in there...");
// stkBestSellers.Push("TechSmith SnagIt 12");
// Console.WriteLine("\n");
// Console.WriteLine("Do I still have LINQPad 4 Installed? ... " + stkBestSellers.Contains("LINQPad 4") + "\n");
// Console.WriteLine("Let's pop through the stack:");
// while(stkBestSellers.Count > 0) {
// string appPop = (string) stkBestSellers.Pop ();
// Console.WriteLine("Popping {0}", appPop );
// }
// Console.WriteLine("\n");
// Console.WriteLine("And finally, let's make sure we're completely clean by issuing a clear.");
// stkBestSellers.Clear();
}
}