package com.test; import java.util.LinkedList; import java.util.List; public class Array_unique { //去除数组中重复的记录 public static String[] array_unique(String[] a) { // array_unique List<String> list = new LinkedList<String>(); for(int i = 0; i < a.length; i++) { if(!list.contains(a[i])) { list.add(a[i]); } } return (String[])list.toArray(new String[list.size()]); } }

陨石承影 LV1
2022年10月21日
yanxuejian1993
2021年5月21日
暂无贡献等级
2196316269 LV10
2021年2月24日
szy2503 LV2
2020年8月10日
503382513 LV10
2020年7月8日
newhaijun LV15
2020年5月15日
15838634741 LV18
2020年5月7日
阿猫喵喵喵996 LV12
2019年10月24日
魔鬼小玄 LV1
2019年10月13日
80730176 LV7
2019年6月14日