Hi I’m trying to print multiple things but it only prints Hello World. I changed the file name so it should work but its not printing the other 2 system.out.println(); statements

Hi @PrestonLim, welcome to the community!

So basically by default Replit only runs the Main file. Are you using that file?

And if you are then we need a link to your Repl to help you better.

1 Like

You can just run,
java your_file_name
to run a file with your own filename that isn’t