Program only printing Hello World

I’ve read the other posts saying to change the .replit file word Main to the name of the class I want to run. Main is listed several time throughout that code, am I supposed to change it everywhere?
When I did change it everywhere, I still got the same print out of “Hello World”.

Repl link/Link to where the bug appears:

Someone had told me that I could just change the hello world line to state filename.main(args); and it worked over the summer, but I’m having trouble getting it to work now.

code snippet

Hey @LisaHoffman welcome to the forums!

This is because you will have to change the entrypoint. To access this click on the three dots next to where it says Files >, then click Show Hidden Files, click on the .replit file. Go to where it says entrypoint = then copy or type in the file path to the Java file you want to run. I hope this helps!

1 Like