using System;
using System.Collections.Generic;
class Example
{
public static void Main()
{
Queue<string> bookCollection = new Queue<string>();
bookCollection.Enqueue ("The Black Book");
bookCollection.Enqueue ("The Light we Cannot See");
bookCollection.Enqueue ("The Sun is Also a Star");
bookCollection.Enqueue ("A Man Called Ove");
bookCollection.Enqueue ("A Dog's Purpose: A Novel for Humans");
// Print the breeds in my Queue
Console.WriteLine("Here are some of the most popular books on New York Times best sellers list:");
foreach (string books in bookCollection)
{
Console.WriteLine(books);
}
bookCollection.Dequeue ();
bookCollection.Dequeue ();
Console.WriteLine("\nLets get rid of a couple and add some more.");
foreach (string books in bookCollection)
{
Console.WriteLine(books);
}
Console.Write("\nNumber of books listed above: " + bookCollection.Count);
}
}