mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
17 lines
362 B
Java
17 lines
362 B
Java
// "Replace with count()" "true"
|
|
|
|
public class Main {
|
|
public long test(String[] array, long limit) {
|
|
long longStrings = 0;
|
|
for(String str : a<caret>rray) {
|
|
String trimmed = str.trim();
|
|
if(trimmed.length() > 10) {
|
|
longStrings++;
|
|
if(longStrings > limit) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return longStrings;
|
|
}
|
|
} |