- array
- the sorted array to search.
- startIndex
- the inclusive start index.
- endIndex
- the exclusive start index.
- value
- the element to find.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.ClassCastException if an element in the array or the search element does not implement Comparable, or cannot be compared to each other. Java.Lang.IllegalArgumentException if startIndex > endIndex Java.Lang.ArrayIndexOutOfBoundsException if startIndex array.length
Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.