mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
10 lines
247 B
Java
10 lines
247 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Objects;
|
|
|
|
public class Main {
|
|
public String test(String[] array) {
|
|
return Arrays.stream(array).limit(11).filter(Objects::nonNull).findFirst().orElse("");
|
|
}
|
|
} |