Boolean equals(int[] a,int[] b) 判断两个数组是否相等
String to String(int[] a) 输出数组信息
Void fill(int [] a,int val) 将指定值填充到数组之中
Void sort(int[] a) 对数组进行排序
Int binarySearch(int[] a,int key) 对数组进行二分法检索指定的值
import java.util.Arrays;
int[] arr1=new int[]{1,4,26,34,9};
int[] arr2=new int[]{1,4,26,34,9};
boolean isEquals=Arrays.equals(arr1, arr2);
System.out.println(isEquals);
System.out.println(Arrays.toString(arr1));
Arrays.fill(arr1, 10);
System.out.println(Arrays.toString(arr1));
Arrays.sort(arr2);
System.out.println(Arrays.toString(arr2));
int[] arr3=new int[] {-23,-45,-2,34,12,44,77,23,12};
int index=Arrays.binarySearch(arr3, -23);
if(index<=0) {
System.out.println(index);
}else {
System.out.println("未找到");
}