using System;
using System.Collections;
class Program
{
static void Main() {
ArrayList list = new ArrayList(){"c#", "c", "c++", "php"};
string[] arr = list.ToArray(typeof(string)) as string[];
foreach (string s in arr) {
Console.WriteLine(s);
}
}
}
/*
run:
c#
c
c++
php
*/