- array
- the sorted array to search.
- 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.
Performs a binary search for value in the ascending sorted array array. 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.