че за бред? в чем ошибка?
package com.javarush.task.pro.task04.task0409;
import java.util.Scanner;
/*
Минимум из введенных чисел
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner a = new Scanner(System.in);
int max = Integer.MAX_VALUE;
int b = a.nextInt();
while (a.hasNextInt())
{
if (b < max)
max = b;
}
System.out.println(max);
}
}