try
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("輸入新的成績(jī)");
? ? ? ? ? ? ? ? int shuzi = Convert.ToInt32(Console.ReadLine());
? ? ? ? ? ? ? ? int[] xsz = { 85, 90, 65, 60, 83, shuzi };
? ? ? ? ? ? ? ? ArrayList a = new ArrayList(xsz);
? ? ? ? ? ? ? ? a.Sort();
? ? ? ? ? ? ? ? Console.WriteLine("重新輸入后的排序是:");
? ? ? ? ? ? ? ? foreach (var item in a)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? Console.Write(item+"\t");
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? ? ? catch
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("小伙子你輸入有點(diǎn)問(wèn)題出去面壁思過(guò)");
? ? ? ? ? ? }
? ? ? ? ? ? Console.ReadKey();
