using System;
using System.Collections;
public class Program
{
public static void Main()
ArrayList myArrayList = new ArrayList();
// Adding elements to the ArrayList
myArrayList.Add("A");
myArrayList.Add("B");
myArrayList.Add("C");
foreach (string name in myArrayList)
Console.Write(name+ " ");
Console.ReadLine();
}