Lists { public static <T> List<T> reverse(List<T> list) { Collections.reverse(list); return list; }  static T add(Collection<T> list, T element); static List<T> subList(List<T> list, int startIndex); static ArrayList<T> subList(List<T> list, int startIndex, int endIndex); @SafeVarargs static void sort(Comparator<T> comparator, List<? extends T>... collections); static List<T> reverse(List<T> list); static List<T>[] split(List<T> list, T delimiter); @SafeVarargs static List<T> mutableOf(T... elements); static T get(List<T> list, int index);  }
@Test void reverse() { Assertions.assertEquals(Arrays.asList("c", "b", "a"), Lists.reverse(Lists.mutableOf("a", "b", "c"))); }