using System; using System.Collections; using System.Text; namespace ConsoleApplication2 { class Program { static http://cims.clayton.edu/itsk2313/examples/Fall_2008/array_lists_example2.txtvoid Main(string[] args) { ArrayList myList = new ArrayList(); for (int i = 1; i <= 100; i++) {myList.Add(i);} // myList.Capacity = 100; Console.WriteLine("The length of myList is = " + myList.Count); Console.Write("The items in myList are = "); foreach (int i in myList) {Console.Write(i + " ");} Console.WriteLine(); Console.WriteLine("The capacity of myList is = " + myList.Capacity); Console.WriteLine(); } } }