把数组复制成特定长度的数组
int d[]=Arrays.copyOf(b,b.length);
System.out.println("d:"+Arrays.toString(d));
System.out.println("b:"+Arrays.toString(b));
查询数组下标
int i=Arrays.binarySearch(b, 5);
System.out.println("数组b第5个数字下标是:"+i);
数组转换成字符串
String str = Arrays.toString(a);
字符串转换成集合
List<String> list = Arrays.asList(str);
for (int i = 0; i < list.size(); i++) {
System.out.println("转换后的List集合:"+list.get(i));
}