public static void main(String args[]){
        int arr[] = {3,4,5,6,7,8,9,10,11,12};
        int arr1[] = {-5,-4,-3,-1,0,1,2,3};
        MissingNumberInConsecutiveNumbers mn = new MissingNumberInConsecutiveNumbers();
        System.out.println(mn.findMissing(arr1));
    }
Find missing number in consecutive numbers.
src/com/interview/binarysearch/MissingNumberInConsecutiveNumbers.java