mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2025-06-07 22:49:24 +03:00
modified lab3
This commit is contained in:
parent
4fce8c914c
commit
5c75c2bef1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user