mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
15 lines
357 B
Java
15 lines
357 B
Java
// "Replace with count()" "false"
|
|
|
|
public class Main {
|
|
public long test(String[] array) {
|
|
long longStrings = 0;
|
|
for(String str : a<caret>rray) {
|
|
String trimmed = str.trim();
|
|
if(trimmed.length() > 10) {
|
|
longStrings = longStrings + 1;
|
|
if(longStrings >= trimmed.length()) break;
|
|
}
|
|
}
|
|
return longStrings;
|
|
}
|
|
} |