modified lab3

This commit is contained in:
BadOfficer 2023-05-15 19:04:50 +03:00
parent 4fce8c914c
commit 5c75c2bef1
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ public class Lab3 {
wordList.clear();
wordList.addAll(wordSet);
wordList.sort(String::compareToIgnoreCase);
wordList.sort((o1, o2) -> o1.compareToIgnoreCase(o2));
for (String element : wordList) {
System.out.println(element);