static void BeginQueue(QueueRun queueRun) { Console.Clear(); GetQueueInfo(); Console.Write("\nClick on a specific button: "); var key = Console.ReadKey(); Console.WriteLine(); switch (key.Key) { case ConsoleKey.B: { Console.Clear(); queueRun.BasicQueue(); PressAnyKey(); } break; case ConsoleKey.E: { Console.Clear(); queueRun.EasyQueue(); PressAnyKey(); } break; case ConsoleKey.A: { Console.Clear(); queueRun.ArrayQueue(); PressAnyKey(); } break; case ConsoleKey.L: { Console.Clear(); queueRun.LinkedQueue(); PressAnyKey(); } break; case ConsoleKey.S: { Console.Clear(); queueRun.EasyDeque(); PressAnyKey(); } break; case ConsoleKey.D: { Console.Clear(); queueRun.DuplexLinkedDeque(); PressAnyKey(); } break; case ConsoleKey.X: { } break; } }