Deleted java files, .class file remains

Question:
one of my java files has been deleted and only the class file remains, but still functions as it did before. How can I access or recover the original java file?

Replit Profile: https://replit.com/@Spookide

Hey @Spookide and welcome to the community!

To recover a file, create another file with the exact same name as the original (this includes cases, e.g. Main.java and main.java are two different files).

3 Likes