Utils { static float min(List<Entry> entries) { float min = Float.MAX_VALUE; for (Entry e : entries) { min = Math.min(min, e.getY()); } return min; }  static double median(ArrayList<Double> arrList); static double mean(double[] x); static double[] interp(double[] x, double[] xp, double[] yp); static double stdev(double[] a); static double[] extract(int[] indicator, int value, double[] arr); static String array2string(double[] a, String format); static int argmax(double[] a); static int argmin(double[] a); static double findBestShift(double[] laserT, double[] touchT, double[] touchY);  }
@Test public void testMinEntries() { List<Entry> entries = new ArrayList<>(); for (int i = 1; i <= 10; i++) { entries.add(new Entry(i, i)); } assertEquals(1, Utils.min(entries), 1e-12); }