Что то не выходит ругается...
package com.javarush.task.pro.task04.task0409;
import java.util.Scanner;
/*
Минимум из введенных чисел
*/
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int max = 2147483646;
if (sc.hasNextInt())
{
while(true){
if (sc.hasNextInt())
{
int number = sc.nextInt();
if (number < max ) {
max = number;
}
else if ( number < max){
continue;
}
}
else {
break;
}
}
}
else if (sc.hasNextLine()){
System.out.print(2147483646);}
System.out.print(max);
}
}