I\'m trying to calculate the total, mean and median of an array thats populated by input received by a textfield. I\'ve managed to work out the total and the mean, I just ca
You should also really abstract finding the median into its own method, and just return the value to the calling method. This will make testing your code much easier.