数组去掉重复得元素

时间:2020-04-14 22:35:46   收藏:0   阅读:50
  1. String[] str = {"aa","kser","bdf","ope","aa"};
  2.  
    String[] str2 = str.Distinct().ToArray();
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!