摘要:一 利用HashSet进行去重 //定义一个数组;有几个重复项 int[] testarray = {1,2,33,4,2,3,44,5,222,3}; //利用HashSet对数组数据去重 Set<Integer> set = new HashSet(); for(int i=0;i<testar
阅读全文
posted @ 2019-01-22 14:30
posted @ 2019-01-22 14:30
posted @ 2019-01-17 15:12