I can't solve this problem....)
package en.codegym.task.pro.task04.task0408;
import java.util.Scanner;
/*
Maximum of entered numbers
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Scanner console = new Scanner(System.in);
int x = console.nextInt();
int max = 0;
while(console.hasNextInt()){
if(x > max)max = x;
if((x % 2) == 0)
System.out.println(max);
}
}
}