Подскажите, пожалуйста, что не так? Почему ошибка?
![]()

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