Utils { static float max(List<Entry> entries) { float max = Float.MIN_VALUE; for (Entry e : entries) { max = Math.max(max, e.getY()); } return max; }  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 testMaxEntries() { List<Entry> entries = new ArrayList<>(); for (int i = 1; i <= 10; i++) { entries.add(new Entry(i, i)); } assertEquals(10, Utils.max(entries), 1e-12); }