using System;
using System.Collections.Generic;
public class Program
{
string[] cities= { "Mumbai","London","New York"};
public static void Main()
LinkedList<string>linked=new
LinkedList<string>();
//Use AddLast method to add elements at
//
//ne enG
//Use AddFirst method to add element at the
//start.
linked.AddLast("cat");
linked.AddLast("dog");
linked.AddLast("man");
linked.AddFirst("first");
linked.AddLast("Hello");
//Loop through the linked list
foreach (var Item in linked)
Console.WriteLine(Item);
}