Java file randomly wiped?

so I had been working on a single java file for a while , saved it each time. today I look on (no prior issues at all) the entire file is wiped with no data in source along with all compiled files deleted.

Did you check the workspace folder itself outside of eclipse? (or whatever you’re using?)

If not, go back to your project, and highlight where ever it should be, then hit F5.