public static void search(List list) { list.clear(); list.add(”b”); list.add(”a”); list.add(”c”); System.out.println(Collections.binarySearch(list, “a”)); } What is the result of calling search with a valid List implementation?()A、0B、1C、aD、bE、cF、T
题目
public static void search(List list) { list.clear(); list.add(”b”); list.add(”a”); list.add(”c”); System.out.println(Collections.binarySearch(list, “a”)); } What is the result of calling search with a valid List implementation?()