@@ -0,0 +1,1249 @@
+/**%0A * Copyright (C) 2015 The Authors.%0A */%0Apackage dk.itu.kelvin.util;%0A%0A// General utilities%0Aimport java.util.Arrays;%0Aimport java.util.Comparator;%0A%0A/**%0A * Collections class.%0A *%0A * @version 1.0.0%0A */%0Apublic final class Collections %7B%0A  /**%0A   * Sort a list of comparable elements.%0A   *%0A   * %3Cp%3E%0A   * The list will be sorted in-place.%0A   *%0A   * @param list The list of comparable elements to sort.%0A   */%0A  @SuppressWarnings(%22unchecked%22)%0A  public static %3CT extends Comparable%3C? super T%3E%3E void sort(%0A    final List%3CT%3E list%0A  ) %7B%0A    T%5B%5D elements = (T%5B%5D) list.toArray();%0A%0A    Arrays.sort(elements);%0A%0A    for (int i = 0; i %3C elements.length; i++) %7B%0A      list.set(i, elements%5Bi%5D);%0A    %7D%0A  %7D%0A%0A  /**%0A   * Sort a list of elements using the specified comparator.%0A   *%0A   * %3Cp%3E%0A   * The list will be sorted in-place.%0A   *%0A   * @param list        The list of elements to sort.%0A   * @param comparator  The comparator to use for sorting the list.%0A   */%0A  @SuppressWarnings(%22unchecked%22)%0A  public static %3CT%3E void sort(%0A    final List%3CT%3E list,%0A    final Comparator%3C? super T%3E comparator%0A  ) %7B%0A    T%5B%5D elements = (T%5B%5D) list.toArray();%0A%0A    Arrays.sort(elements, comparator);%0A%0A    for (int i = 0; i %3C elements.length; i++) %7B%0A      list.set(i, elements%5Bi%5D);%0A    %7D%0A  %7D%0A%7D%0A

Implement sorting of lists.