System.out.println it doesn’t show in the terminal [closed]

I typed the code but it didn’t show in the terminal can anyone help 🙂 ?

enter image description here

Answer

Run the program to see the output, if you have run the program from VS code.

find the output in debug console or output

If not then open a terminal/command line go the directory where your Hello.java file is located.

In the terminal, run the command:

javac Hello.java

The file Hello.class should be created in your current directory try running.

java Hello

Hope you have java environment variables. if not set the environment variables.