()
| 38 | } |
| 39 | |
| 40 | public double min() { |
| 41 | if (size() == 0) { |
| 42 | throw new NoSuchElementException(); |
| 43 | } |
| 44 | |
| 45 | double out = get(0); |
| 46 | for (int i = 1; i < size(); ++i) { |
| 47 | out = Math.min(out, get(i)); |
| 48 | } |
| 49 | |
| 50 | return out; |
| 51 | } |
| 52 | |
| 53 | public double max() { |
| 54 | if (size() == 0) { |
no test coverage detected