java.lang.ObjectBinarySearcher
public class BinarySearcher
Searches an array using binary search
Constructor Summary | |
---|---|
BinarySearcher()
|
Method Summary | |
---|---|
int |
search(int[] array,
int value,
int left,
int right)
Searches a subset of an array using binary search for the value between the given left and right indices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinarySearcher()
Method Detail |
---|
public int search(int[] array, int value, int left, int right)
array
- the array to searchvalue
- the target value to find