Don't know how to run program in the terminal

You type exactly what is says into the bash terminal?

Yes, I did. After I type ls and then type javac Mess, it shows Mess.class and, but the prompt still pops up.

javac *.java

will compile all java files


will compile that specifc file

java Mess

will run that file

1 Like