using System;
using System.Collections.ObjectModel;
class Program
{
static void Main() {
Collection<string> col = new Collection<string>();
col.Add("c#");
col.Add("c++");
col.Add("c");
col.Add("java");
string[] arr = new string[col.Count];
col.CopyTo(arr, 0);
foreach(Object obj in arr) {
Console.WriteLine(obj);
}
}
}
/*
run:
c#
c++
c
java
*/