I have seen this problem a few times. The java compiler is complaining of typos that I can’t see.
For example, I have the line of text, ‘System.out.println(…’ and with a floating error message of ‘Systtm cannot be resolved.’’
I’m uncertain whether this was a typo that I had corrected or if I had originally typed System but the package is being given a corrupted stream of text.
This has happened on occasion that the compiler is seeing a version of code that I can’t see. Saving the file doesn’t help. When I inspect the file outside of Atom, in this example, I see System (not Systtm).
I have a screenshot if helpful.