Changes after editor's review

This commit is contained in:
caroline
2019-02-04 21:52:56 +01:00
parent 0a4e783bf5
commit 6faaedddb4
2 changed files with 21 additions and 74 deletions
@@ -28,7 +28,6 @@ public class VerifyAllEqualListElements {
public boolean verifyAllEqualUsingStream(List<String> list) {
return list.stream()
.distinct()
.limit(2)
.count() <= 1;
}