(double num)
| 10 | private final int capacity; |
| 11 | |
| 12 | public void add(double num) { |
| 13 | end = (end + 1) % capacity; |
| 14 | elements[end] = num; |
| 15 | if (start == end || start == -1) { |
| 16 | start = (start + 1) % capacity; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | public double get(int index) { |
| 21 | if (index >= capacity) { |
no outgoing calls
no test coverage detected