Skip to content

Lesson 41 (set) for review#93

Open
Binary-Cat-01 wants to merge 2 commits intoKFalcon2022:for-prfrom
Binary-Cat-01:lesson_41_set_for_review
Open

Lesson 41 (set) for review#93
Binary-Cat-01 wants to merge 2 commits intoKFalcon2022:for-prfrom
Binary-Cat-01:lesson_41_set_for_review

Conversation

@Binary-Cat-01
Copy link
Copy Markdown

No description provided.

.toLowerCase()
.split(" ");

Set<String> uniqueWords = new HashSet<>(Arrays.asList(splittedWords));
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrays.asList() - относительно устаревшая форма. Чаще используют List.of()

private final Logger logger;

public TaskService() {
this.tasks = new TreeSet<>();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошее решение. Одно из возможных:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants