что делать?
package com.javarush.task.pro.task04.task0410;
import java.util.Scanner;
/*
Второе минимальное число из введенных
*/
public class Solution {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
int min = Integer.MAX_VALUE;
int secondMin = 0;
while (a.hasNextInt());
{
int x = a.nextInt();
if (x < min) {
secondMin = min;
min = x;
}
else if (secondMin > x)
secondMin = x;
else if (a.hasNextLine())
break;
}
System.out.println(secondMin);
}
}