One more thing also there is not method named as BinarySearch which takes Integer Array as an parameter, instead of Integer Array it accepts int array.
Correct the program. and this is the reference of binary Search API
public static int binarySearch(int a, int key)Searches the specified array of ints for the specified value using the binary search algorithm. The array must be sorted (as by the sort method, above) prior to making this call. If it is not sorted, the results are undefined. If the array contains multiple elements with the specified value, there is no guarantee which one will be found.