int[] ageArray = { 28, 76, 38,67,45,18 };
ArrayList al = new ArrayList();
//添加整型数组ageArray的元素到数组列表 al
Console.WriteLine("数组列表的元素有:");
foreach (object m in al)
{
Console.WriteLine(m);
}
//移除数组列表al中索引值为2的元素
//对数组列表al进行降序排列
Console.WriteLine("降序后数组列表");
foreach (object m in al)
{
Console.WriteLine(m);
}