does anyone know how to alter the input test set? Apparently, the arbiter applies several scenarios to determine if the coding stays true. you can alter the input but, when you go to run it, it reverts to the original set. I'm getting the right solution given the input set but I still am not passing.
package en.codegym.task.pro.task04.task0410;
import java.util.Scanner;
/*
Second smallest number entered
*/
public class Solution
{
public static void main(String[] args)
{
//write your code here
boolean moreInput = true;
int console = 0;
int inCount = 0;
int first = Integer.MAX_VALUE;
int second = Integer.MAX_VALUE;
Scanner input = new Scanner (System.in);
while (moreInput)
{
if (input.hasNextInt())
{
console = input.nextInt();
if(console <= first )
{
first = console;
inCount++;
}
else
{
if(console <= second)
{
second = console;
inCount++;
}
else
{
continue;
}
}
}
else
{
moreInput = false;
if (inCount >= 2)
{
System.out.println (second);
}
else
{
//System.out.println ("not enough input");
System.exit(-1);
}
}
}
}
}