Java set

Java set is a collection that contain unique elements.
Set sports = new HashSet(); for (Season season : currentSeasons) { sports.add(season.getSportLeague().getSport()); }

No comments:

Post a Comment