I am using Intellij IDEA.
Here is my code:
public static void main(String[] args) {
java.util.Scanner scanner = new java.util.Scanner(System.in);
int a = scanner.nextInt();
System.out.println(a);
}
The problem is that when I run it, it works. But, Intellij cannot find Scanner class. It is underlining with red color.
How to fix this?