namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
// Create the array
string[] array = { "one", "two", "three", "four", "five", "six", "seven" };
Console.WriteLine("Enter the element of the array:");
for (int i = 0; i < 7; i++)
{
Console.WriteLine(array[i]);
}
// Convert Array into ArrayList
ArrayList arrLst = new ArrayList(array);
Console.WriteLine("The elements in the arraylist that are copied from array:");
foreach (string s in arrLst)
{
Console.WriteLine(s);
}
}
}
}