<prompt> Hlahisa karolo ea khoutu ea Java e nkang palo ea palo e khutlisetsang boleng ba boharengnan  <response>: Instruction in English: Output a Java code segment that takes an array of numbers and returns the median value . Response in English: Heres a Java code segment that takes an array of numbers and returns the median value:javapublic static double findMedianint arr double median; int n arr.length; Arrays.sortarr; if n 2 0 median arrn 2 arrn 2 - 1 2.0; else median arrn 2; return median; . Response in Sesotho: Mona ke karolo ea khoutu ea Java e nkang palo ea lipalo le ho khutlisa boleng ba bohareng: java public static double findMedianint arr double median; int n arr.bolelele; Lihlopha.hlophaarr; haeba n 2 0 bohareng arrn 2 arrn 2 - 1 2.0; e ngoe ea bohareng arrn 2; khutlela bohareng; 