用一般的for循环遍历数组,如果有要查询的元素,返回对应的下标,如果没有该元素,返回-1; packageArraySorted;publicclassArrayTest04 {publicstaticvoidmain(String[] args) {//基本查找int[] array = {4,7,90,40,33,18,75};intn = index(array,4); System.out.println(n); }privatestaticintindex(int[]...