В чем ошибка?
package com.javarush.task.pro.task04.task0410;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner consol = new Scanner (System.in);
int min_1 = Integer.MAX_VALUE;
int min_2 = consol.nextInt(); //Integer.MAX_VALUE;
while (consol.hasNextInt())
{
int x = consol.nextInt();
if (x <= min_1)
{
min_1 = x;
} else if (x < min_2)
{
min_2 = x;
}
}
System.out.println(min_2);
}
}