mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
13 lines
308 B
Java
13 lines
308 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
private static void test(List<String> list) {
|
|
long count = list.stream().filter(s -> !s.isEmpty()).co<caret>unt();
|
|
if(count > 10) {
|
|
long result = count*2;
|
|
System.out.println(result);
|
|
}
|
|
}
|
|
} |