(List<T> data)
| 120 | } |
| 121 | |
| 122 | public static <T> T median(List<T> data) { |
| 123 | Collections.sort((List)data); |
| 124 | int n = data.size(); |
| 125 | return data.get(n/2); |
| 126 | } |
| 127 | |
| 128 | public static double max(List<Double> data) { |
| 129 | Collections.sort(data); |
no test coverage detected