Driver program to test above functions
public static void main ( String [ ] args ) { int a [ ] = { 1 , 12 , 15 , 26 , 38 } ; int b [ ] = { 2 , 13 , 24 } ; int n1 = a . length ; int n2 = b . length ; System . out . println ( findmedian ( a , n1 , b , n2 ) ) ; } }