import java.util.Scanner;

class BinarySearch {
 
    public static int recursiveBinarySearch(int[] sortedArray, int start, int end, int key) {
         
        if (start < end) {
            int mid = start + (end - start) / 2;  
            if (key < sortedArray[mid]) {
                return recursiveBinarySearch(sortedArray, start, mid, key);
                 
            } else if (key > sortedArray[mid]) {
                return recursiveBinarySearch(sortedArray, mid+1, end , key);
                 
            } else {
                return mid;   
            }
        }
        return -(start + 1);  
    }
 
    public static void main(String[] args) {
         
       /* int[] arr1 = {2,45,234,567,876,900,976,999};
        int index = recursiveBinarySearch(arr1,0,arr1.length,45);
        System.out.println("Found 45 at "+index+" index");
		
        index = recursiveBinarySearch(arr1,0,arr1.length,999);
        System.out.println("Found 999 at "+index+" index");
		
        index = recursiveBinarySearch(arr1,0,arr1.length,876);
        System.out.println("Found 876 at "+index+" index"); */
		
		
		Scanner s=new Scanner(System.in);
        int size=Integer.parseInt(arr[0]);          
        int args[]=new int[size];
                                       
        for(int i=0;i<size;i++) 
         {
          System.out.println("Enter element :"+i);
          arr[i]=s.nextInt();
         }
        
		
		System.out.println("Enter Element To Be Searched In Array");
		int Find=s.nextInt();
		
		int index = recursiveBinarySearch(arr1,0,arr1.length,Find); 
}
@@ -351,33 +351,16 @@
 d, key);
-%0D%0A               
   %0D%0A    
@@ -481,32 +481,16 @@
  , key);
-%0D%0A              
    %0D%0A   
@@ -1111,23 +1111,19 @@
 ; */%0D%0A%09%09
+%09
 %0D%0A
-%09%09%0D%0A%09
 %09Scanner
@@ -1425,23 +1425,8 @@
  %7D%0D%0A
-        %0D%0A%09%09%0D%0A%09
 %09Sys
@@ -1484,17 +1484,16 @@
 ray%22);%0D%0A
-%09
 %09int Fin
@@ -1512,17 +1512,16 @@
 );%0D%0A%09%09%0D%0A
-%09
 %09int ind
@@ -1576,8 +1576,10 @@
 nd); %0D%0A%7D
+%0D%0A

Update BinarySearch.java