modified lab3
This commit is contained in:
parent
4fce8c914c
commit
5c75c2bef1
|
@ -15,6 +15,7 @@ public class Lab3 {
|
||||||
wordList.clear();
|
wordList.clear();
|
||||||
wordList.addAll(wordSet);
|
wordList.addAll(wordSet);
|
||||||
wordList.sort(String::compareToIgnoreCase);
|
wordList.sort(String::compareToIgnoreCase);
|
||||||
|
wordList.sort((o1, o2) -> o1.compareToIgnoreCase(o2));
|
||||||
|
|
||||||
for (String element : wordList) {
|
for (String element : wordList) {
|
||||||
System.out.println(element);
|
System.out.println(element);
|
||||||
|
|
Loading…
Reference in New Issue