Driver program
public static void main ( String args [ ] ) { int a [ ] = { 1 , 3 , 4 , 2 , 7 , 5 , 8 , 6 } ; int n = a . length ; System . out . println ( " Median ▁ = ▁ " + findMedian ( a , n ) ) ; } }