GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
// TODO Generate a list of 10 random players using the stream and then filter so that it does not contain players with the same name
// TODO 1.a Generate a list of 10 random players using the stream and then filter so that it does not contain players with the same name
List<Player>players=Collections.emptyList();
// TODO 1.b Use the stream to generate a list of 50 matches between random players (from the list of players) with a random result. Make sure the player does not play with himself.
List<Match>matches=Collections.emptyList();
// TODO Use the stream to generate a list of 50 matches between random players (from the list of players) with a random result. Make sure the player does not play with himself.
returnnewTournament(players,matches);
}
...
...
@@ -45,11 +44,11 @@ public class Tournament {
builder.append("\n");
builder.append("\n\nPlayers:\n");
// TODO Use the stream to add a listing of all players to the builder. Individual players are separated by a "\ n" character
// TODO 2.a Use the stream to add a listing of all players to the builder. Individual players are separated by a "\ n" character
builder.append(/* list of all players */"");
builder.append("\n\nMatches:\n");
// TODO Use the stream to add a listing of all entries to the builder. Individual matches are separated by a "\ n" character
// TODO 2.b Use the stream to add a listing of all entries to the builder. Individual matches are separated by a "\ n" character