Skip to content

Conversation

@Sla-als
Copy link
Owner

@Sla-als Sla-als commented Apr 2, 2020

No description provided.

};
//Найти и вывести список уникальных слов,
//из которых состоит массив (дубликаты не считаем)
SortedSet<String> unique = new TreeSet<>(Arrays.asList(words));// sorted
Copy link

Choose a reason for hiding this comment

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

Для типа переменной достаточно просто Set. Для реализации подойдет обычный HasSet. Сортировать ни к чему.

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.

3 participants