package cn.itcast.UserfulClass17;
import java.util.Arrays;
public class ClassArray {
public static void main(String[] args) {
int[] arr = {35,1,20,32,45,5};
int index = Arrays.binarySearch(arr,35);
System.outprintln(index);// 得出的结果是 -5而不是0 ????
}
}
onemoo
蒲公英wsg
相关分类