@Test public void testRecursiveBinarySearchAlgorithm() { RecursiveBinarySearch algorithm = new RecursiveBinarySearch(); long[] sortedArray = {0, 11, 21, 31, 41, 51, 61, 71, 81, 91, 101}; int result = algorithm.binarySearch(sortedArray, 81); assertEquals(8, result); }
public int binarySearch(long[] array, int target) { return binarySearch(array, 0, array.length - 1, target); }
RecursiveBinarySearch { public int binarySearch(long[] array, int target) { return binarySearch(array, 0, array.length - 1, target); } }
RecursiveBinarySearch { public int binarySearch(long[] array, int target) { return binarySearch(array, 0, array.length - 1, target); }  }
RecursiveBinarySearch { public int binarySearch(long[] array, int target) { return binarySearch(array, 0, array.length - 1, target); }  int binarySearch(long[] array, int target); }
RecursiveBinarySearch { public int binarySearch(long[] array, int target) { return binarySearch(array, 0, array.length - 1, target); }  int binarySearch(long[] array, int target);  }