Show

From TRCCompSci - AQA Computer Science
Revision as of 12:45, 14 November 2017 by Admin (talk | contribs)
Jump to: navigation, search
            public void Show()
            {
                if (Rear != -1)
                {
                    Console.WriteLine();
                    Console.Write("The contents of the queue are: ");
                    foreach (var item in Contents)
                    {
                        Console.Write(item);
                    }
                    Console.WriteLine();
                }
            }

Outputs the contents of the queue instance to the standard console output stream.