2021-05-14
二分查找:
Arrays. binarySearch(int book[],int key)
package 集合;
import java.util.Arrays;
import java.util.Scanner;
public class Test {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int book[]={1,3,5,7,9};
Arrays.sort(boo
原创
2021-05-14 18:47:49 ·
59 阅读 ·
0 评论