namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
ArrayList arr = new ArrayList();
arr.Add("Red");
arr.Add("Yellow");
arr.Add("Green");
arr.Add("Brown");
arr.Add("Pink");
string[] str = new string[5];
arr.CopyTo(str);
Console.WriteLine("The array is:");
foreach (string s in str)
{
Console.WriteLine(s);
}
}
}
}