Collections.binarySearch(List list, K key) clarification. Java
问题 Given the following statement, taken from this Oracle java tutorial, related to the binarySearch() method of the class Collections: The return value is the same for both forms. If the List contains the search key, its index is returned. If not, the return value is (-(insertion point) - 1) , where the insertion point is the point at which the value would be inserted into the List, or the index of the first element greater than the value or list.size() if all elements in the List are less than