What does the crossed out System mean? And how to fix it?

What does the crossed out System mean? And how to fix it?

  • Do you have IntelliJ IDEA? - Alexander Semprony Grakh
  • So the IDE notes obsolete methods. You may have an error in the import. - Maxim
  • one
    Strike out methods / classes are usually deprecated (obsolete). Those that are no longer recommended. But specifically in your case, it is not very clear why the System class is crossed out. It is definitely not outdated) Check where the System class comes from. Must be from java.lang package - YourFrend
  • Specify which system, development environment, java version. Does the jdk version match the java virtual machine version? Does your IDE jdk see? - Vyacheslav Mischenko
  • one
    Place the cursor on the crossed out section and read the hint. - free_ze

0