public static void main(String args[]){
        int arr1[] = {1,2,3,4,6};
        int arr2[] = {-1,5,6,7,8};
        MedianOfTwoSortedArray mts = new MedianOfTwoSortedArray();
        System.out.println(mts.median(arr1, arr2));
    }
http://www.geeksforgeeks.org/median-of-two-sorted-arrays/
src/com/interview/binarysearch/MedianOfTwoSortedArray.java