Median { public static int max(List<List<Integer>> lists) { int max = Integer.MIN_VALUE; for (List<Integer> integerList : lists) { max = Math.max(max, Collections.max(integerList)); } return max; }  static int of(List<List<Integer>> ints); static int max(List<List<Integer>> lists); static int min(List<List<Integer>> lists); static Ordinality ordinality(int pivot, List<List<Integer>> lists);  }
@Test public void max_of_a_list() { Assert.assertEquals(3, Median.max(Lists.<List<Integer>>newArrayList( Lists.newArrayList(0, 3, 2)))); }
@Test public void max_of_a_list2() { Assert.assertEquals(4, Median.max(Lists.<List<Integer>>newArrayList( Lists.newArrayList(0, 3, 2, 4)))); }
@Test public void max_of_a_list3() { Assert.assertEquals(7000000, Median.max(Lists.<List<Integer>>newArrayList( Lists.newArrayList(0, 3, 2, 4), Lists.newArrayList(7000000)))); }