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 Mess.java, but the prompt still pops up.

javac *.java

will compile all java files

javac Mess.java

will compile that specifc file

java Mess

will run that file

1 Like