Exemple #1
0
 public static void Display(string nameMethod, LinkedList <int> linkedList)
 {
     Console.WriteLine(nameMethod);
     if (!linkedList.isEmpty())
     {
         foreach (int item in linkedList)
         {
             Console.Write(item + " ");
         }
         Console.WriteLine();
         Console.WriteLine();
     }
     else
     {
         Console.WriteLine("List is empty!");
         Console.WriteLine();
         Console.WriteLine();
     }
 }