My code:
import java.util.Scanner;
import java.io.Reader; #I also tried to do this, it didnt help
public class firstClass {
public static void main(String[] args) {
System.out.println("how many player?"); #this output works if I delate the reader in the line
int a = reader.nextInt(); #for some reason it shows error for reader
}
}
The error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
reader cannot be resolved
at firstClass.main(firstClass.java: 7)
And also it doesn't show any error if I just remove the line of the reader