### Question:
Statistics { public void removeValue(int location) { if(location < v.size() && location >= 0) v.removeElementAt(location); } Statistics();  Statistics(Iterable<Double> values); void clearAll(); int count(); double max(); double min(); double mean(); double median(); double mode(); int modeOccurrenceCount(); double range(); double standardDeviation(); Vector getValues(); void addValue(Double double1); void addValue(double d); void setValues(Iterable<Double> vals); void setValues(Calculable[] calcs); void removeValues(double d, boolean removeAll); void removeValues(Double double1, boolean removeAll); void removeValue(int location); void removeValues(Double low, Double high); void removeValues(double low, double high); double sum();  }### Answer:
@Test public void testRemoveValue() { List<Double> v = asList(new double[]{ 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }); Statistics stat = new Statistics(v); while (stat.count() > 0) { int i = (int) (Math.random() * stat.count()); stat.removeValue(i); v.remove(i); Assert.assertEquals(v, stat.getValues()); } assertClean(stat); v = asList(new double[]{1, 2, 3, 4, 5}); stat.setValues(v); stat.removeValue(-1); stat.removeValue(5); Assert.assertEquals(v, stat.getValues()); }