Cannot resolve symbol 'Scanner'

i am studying java fundamentals using Intellij IDE. but there is some errors but no issues in output.

  • Cannot resolve symbol ‘Scanner’.
  • Cannot resolve method ‘print(java.lang.String)’.
  • Cannot resolve method ‘nextLine()’.

i imported Scanner library , number format library but there is appear red underling breaker on Scanner and So on

Import java.util.Scanner;
That should work .

Solved by installing same previous version (2019) of jdk and ide.


1 Like