@Test public void testSearchRecursive(){ Assert.assertEquals(Integer.valueOf(-2), BinarySearch.searchRecursive(array, -2)); Assert.assertEquals(Integer.valueOf(10), BinarySearch.searchRecursive(array, 10)); Assert.assertEquals(Integer.valueOf(0), BinarySearch.searchRecursive(array, 0)); Assert.assertEquals(null, BinarySearch.searchRecursive(array, 1)); }
public static Integer searchRecursive(int[] array, int value){ return searchRecursive(array, value, 0, array.length - 1); }
BinarySearch { public static Integer searchRecursive(int[] array, int value){ return searchRecursive(array, value, 0, array.length - 1); } }
BinarySearch { public static Integer searchRecursive(int[] array, int value){ return searchRecursive(array, value, 0, array.length - 1); }  }
BinarySearch { public static Integer searchRecursive(int[] array, int value){ return searchRecursive(array, value, 0, array.length - 1); }  static Integer searchCirculation(int[] array, int value); static Integer searchRecursive(int[] array, int value); }
BinarySearch { public static Integer searchRecursive(int[] array, int value){ return searchRecursive(array, value, 0, array.length - 1); }  static Integer searchCirculation(int[] array, int value); static Integer searchRecursive(int[] array, int value);  }