Merge remote-tracking branch 'origin/master'

This commit is contained in:
Roman Shevchenko
2017-04-21 14:05:46 +02:00
36 changed files with 4006 additions and 2935 deletions
@@ -0,0 +1,10 @@
// "Replace with findFirst()" "true"
import java.util.Arrays;
import java.util.stream.Stream;
public class TestFile {
public void test() {
Stream.of("a", "b").filter(s -> !s.isEmpty()).findFirst().ifPresent(System.out::println);
}
}
@@ -0,0 +1,14 @@
// "Replace with findFirst()" "true"
import java.util.Arrays;
public class TestFile {
public void test() {
for(String s : Ar<caret>rays.asList("a", "b")) {
if(!s.isEmpty()) {
System.out.println(s);
return;
}
}
}
}