Write a method called median that accepts an array of integers as its argument a
ID: 3643591 • Letter: W
Question
Write a method called median that accepts an array of integers as its argument and returns themedian of the numbers in the array. The median is the number that will appear in the middle if
you arrange the elements in order. Assume that the array is of odd size (so that one sole element constitutes the median) and that the numbers in the array are between 0 and 99
inclusive.