We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e68ae18 commit 3693f6bCopy full SHA for 3693f6b
src/com/winterbe/java8/Lambda1.java
@@ -4,7 +4,6 @@
4
import java.util.Collections;
5
import java.util.Comparator;
6
import java.util.List;
7
-import java.util.Objects;
8
import java.util.Optional;
9
10
/**
@@ -45,8 +44,6 @@ public int compare(String a, String b) {
45
44
Optional.ofNullable(names3).ifPresent(list -> list.sort(Comparator.naturalOrder()));
46
47
System.out.println(names3);
48
-
49
- Objects.nonNull(names3);
50
}
51
52
0 commit comments