mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
10 lines
261 B
Java
10 lines
261 B
Java
// "Replace with count()" "true"
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class Main {
|
|
public int testPrimitiveArray(int[] data) {
|
|
int count = (int) Arrays.stream(data).mapToLong(val -> val * val).filter(square -> square > 100).count();
|
|
return count;
|
|
}
|
|
} |