using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace ConsoleApplication4
{
class Program
{
static void Main (string[] args)
{
ArrayList Mylist = new ArrayList();
for (char c = 'a'; c < 'f'; ++c)
{
Mylist.Add(c);
}
string str = "Hello";
Mylist.Insert(3, str);
for (int i = 0; i < Mylist.Count; ++i)
{
Console.WriteLine(Mylist[i]);
}
Mylist.Remove(str);
Console.WriteLine();
for (int i = 0; i < Mylist.Count; ++i)
{
Console.WriteLine(Mylist[i]);
}
Mylist.RemoveAt(2);
Console.WriteLine();
for (int i = 0; i < Mylist.Count; ++i)
{
Console.WriteLine(Mylist[i]);
}
}
}
}