https://blog.csdn.net/qpzkobe/article/details/78897762
binarySearch(Object[], Object key)
a: 要搜索的数组
key:要搜索的值
如果key在数组中,则返回搜索值的索引
https://blog.csdn.net/qq_32405269/article/details/78374035
public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length) 代码解释: Object src : 原数组 int srcPos : 从元数据的起始位置开始 Object dest : 目标数组 int destPos : 目标数组的开始起始位置 int length : 要copy的数组的长度Arrays.asList https://blog.csdn.net/weixin_42585968/article/details/107465070 将数组转化为list String数组去重
String[] ss = { "dds", "dds", "acx", "acx" }; List list = Arrays.asList(ss); Set set = new HashSet(list); String[] rid = (String[]) set.toArray(new String[0]);//将List转为数组 for (String x : rid) { System.out.println(x); }