摘要: //去重复方法一private ArrayList RemoveDuplicateNum(ArrayList list){list.Sort();for (int i = 0; i < list.Count - 1; i++){if (list[i].Equals(list[i + 1])){list.RemoveAt(i);//去重复项i--;}}return list;}//去重复方法二private ArrayList RemoveSame(ArrayList list){//上面写的那句是多余的,这个是最终的for (int i = 0; i < list.Count - 阅读全文
posted @ 2013-04-10 10:07 金虹巴巴 阅读(606) 评论(0) 推荐(0) 编辑