Question: Write the following functions in Java. min max median( lst ): This function returns a list that contains the minimum, the maxi- mum, and the
Write the following functions in Java.
min max median(lst): This function returns a list that contains the minimum, the maxi- mum, and the median numbers of a given list lst. If lst has an odd number of elements, then the median is the number that separates the higher half from the lower half. If lst has an even number of elements, then the median is the mean of the two middle values.
Use the list, not array !!!
something should like :
ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
