Comparator Assignment
Contents
Group Assignment
This is a group assignment.
Background
Code To Implement
CompareUtils
class: | CompareUtils.java | |
methods: | min | |
package: | compare.group | |
source folder: | student/src/main/java |
min
public static <E> Optional<E> min(E[] array, Comparator<E> comparator)
CompareApps
closestTo
public static Optional<Integer> closestTo(Integer[] values, int target)
youngest
public static Optional<HockeyPlayer> youngest(HockeyPlayer[] players)
mostPoints
public static Optional<HockeyPlayer> mostPoints(HockeyPlayer[] players)