I am not getting correct output

i am not getting correct output:

290

JAVA

Repl link:

code snippet

Hi @ganji25harshini , welcome to the forums!
In your repl, go to the Shell and enter java Concatenate.java This should run the program correctly.
Hope this helps!
Also @WindLother (sorry to ping you) why does it print 290? Also, why not ‘JAVA’?

Considering we are talking about the Concatenate project, the code should be printing JAVA. I see no problem within the code.

For the 290 is probably what you alread pointed out, the mismatch in the entrypoint. Misconfiguration in the .replit file can lead to unexpected behavior.

And no problem! You can ping me anytime!