mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
14 lines
266 B
Java
14 lines
266 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
public class Main {
|
|
public String test(String[] array) {
|
|
int count = 0;
|
|
for(String str : a<caret>rray) {
|
|
if (str != null) {
|
|
return str;
|
|
}
|
|
if(++count > 10) return "";
|
|
}
|
|
return "";
|
|
}
|
|
} |