集合的使用
集合中的arraylist,hashtable,stack,queue
--------
数组的排序
使用.net 中现有的方法,进行排序,如sort 方法进行升序排序,如果要进行倒叙排序的话,只需要同时使用另外的一个reverse方法,就可以了,这个方法的意思的进行倒转,正序排序后倒转不就是降序了
 
集合是支持泛型的,因此适当的使用泛型,节省内存使用空间!
例如
Stack<int > sta = new Stack<int >
sta.Push(1);
sta.Push(2);
sta.Push(3);
foreach (int i in sta)
{
            Console.writeline(i);
}