using System;
using System.Collections.Generic;
public class Program
{
private static void PrintLinkedList(LinkedList<string> ll) {
foreach (string word in ll) {
Console.Write(word + " ");
}
Console.WriteLine();
}
public static void Main()
{
string[] arr = { "python", "c#", "php", "nodejs", "java", "c" };
LinkedList<string> ll = new LinkedList<string>(arr);
ll.AddLast("c++");
PrintLinkedList(ll);
}
}
/*
run:
python c# php nodejs java c c++
*/