1.二分查找法思路:不断缩小范围,直到low <= high 2.代码: package Test; import java.util.Arrays; public class BinarySearch { public static void main(String[] args) { int [] a = {1,5,7,9,11,12,16,20}; int target = 16; //System.out.println(Arrays.binarySearch(a, target));…