I'm noticing that people are using the BufferedReader for the TEST problem, but is this the only way to do it? I would like to know what specifically is wrong with my code, and why it isn't passing the validator, being marked as the wrong answer. Any responses would be appreciated.
public static void main(String args)
Scanner input = new Scanner(System.in);
int newInput = 0;
newInput = input.nextInt();
while ( newInput != 42 );