public class Main {
interface GetNum {
void num(int[] x);
}
public static void main(String[] args) {
int[] arr = {15, 16, 18, 19, 22, 0, -2, -4, 44};
GetNum getNum = (x) -> {
for (int j : arr) {
if (j != -4) {
continue;
} else {
System.out.println("Есть!");
break;
}
}
System.out.println("Нету!");
};
getNum.num(arr);
}
}