A code for problem TEST:
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int a;
while ((a = input.nextInt()) != 42)
System.out.println(a);
}
}
And it got accepted with java language. But when I make a jarfile with eclipse and submit it, it returns a RE NZEC. I wonder why?