I have an assignment where I have to name the file the same name as the class. I can't use 'Main.java' . How can this be done in repl.it?
Let's say the class is named
Cat or something.
To create your file
Cat.java, you would need to go to the side bar on the left and click the add file icon. Then name it
Cat.java. Not sure how to run the code in there tho.
- Go to the right side bar.
- Click on the first icon.
- Go to the add file sign on the top.
- Create a new file.
If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!