/*
数组ArrayList使用
*/
using System;
using System.Collections;
class ArrList
{
static void Main()
{
ArrayList arr=new ArrayList();
string str1;
while(true)
{
Console.WriteLine("Please add a string to ArrayList:");
str1=Console.ReadLine();
if(str1=="end")
break;
arr.Add(str1);
Console.WriteLine();
for(int i=0;i<arr.Count;i++)
Console.Write("{0}",arr[i]);
Console.WriteLine("\n");
}
}
}