Здравствуйте! Помогите мне пожалуйста с решением задачи
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);
if (console.hasNextInt()) {
int min = console.nextInt();
if (min % 2 == 0) {
while (console.hasNextInt()) {
int a = console.nextInt();
if ((a % 2 == 0) && a > min) {
min = a;
}
}
System.out.println(min);}
else
System.out.println(Integer.MIN_VALUE);
}
else
System.out.println(Integer.MIN_VALUE);
}
}