Comparator Assignment

From CSE231 Wiki
Jump to navigation Jump to search

Background

Comparator<T>

Code To Implement

CompareUtils

min

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)