Question:
i am new to replit . when i opened java templat , first code was hello world , gave output . but when i wrote another code and clicked run , it still gave output of hello world . how do i make compiler run my file. Repl link:
Another alternative would be - don’t use the “RUN” button. Go to the shell tab and compile / run the add.java file yourself with the javac and java commands.