putting a class in a class file.
RebeccaHammack (0)

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?

You are viewing a single comment. View All
ash15khng (393)

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.