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