this error keeps showing while I run any java program on vs code, the program gets executed with no problem but the error keeps showing
Advertisement
Answer
The method of opening file is wrong. The problem is that a single file cannot be recognized as a project. The correct way to open a java file is to open folder first and then the file.