I was doing the TEST problem with Scanner too but got 2 times NZEC... Where I can found a list of classes that I can't use here to not lose time looking for an error that doesn't exist?
Or do I have something wrong on my code?
import java.util.Scanner;
class Main{
public static void main(String[] args){
int num = 0;
Scanner teclado;
while(num != 42){
teclado = new Scanner(System.in);
num = teclado.nextInt();
if (num != 42)
System.out.println(num);
}
}
}