mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
9 lines
218 B
Java
9 lines
218 B
Java
// "Replace with max()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void work(int[] ints) {
|
|
int max = Arrays.stream(ints).filter(anInt -> anInt < 10).filter(anInt -> anInt >= 0).max().orElse(0);
|
|
}
|
|
} |