My output keeps saying Hello World with every code.

For some reason no matter what type of code i do it only returns with hello world. How do i fix it?

public class EscapeSequences {
  public static void main(String[] args) {
    char firstLetter = 'A';
    char lastLetter = 'Z';
    char newLine = '\n';

This is my code and this is what i get

 sh -c javac -classpath .:target/dependency/* -d . $(find . -type f -name '*.java')
 java -classpath .:target/dependency/* Main
Hello world!

Hey @DekuTodoroki!

You have renamed file in But the start button in Replit launches only the file that is registered in the .replit file (for Java, it is standard

You can rename the file in, or configure the .replit file to run the file.

How to configure the .replit file:

Just click the next to “Files” then click “Show hidden files”. Next click on the .replit file and finally you can change the entrypoint to whatever file you want to run.



Show hidden files


You should also see the docs on how to configure a Repl:

And if you want to run the last edited file, take a look at this post:

1 Like

too busy rn but if you want to make that code work for Java you’d have to edit this bit (that is, if you can understand it…)