что не так с условием
package com.javarush.task.pro.task04.task0408;
import java.util.Scanner;
/*
Максимум из введенных чисел
*/
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner. nextInt();
int max = Integer. MIN_VALUE;
while(scanner.hasNextInt()) {
int x = scanner. nextInt();
if(x % 2 == 0 && x > max)
max = x; }
System. out. println(max);
}
//напишите тут ваш код
}