As you can see I'm trying to run a simple Java program but I need the command which I can write in terminal to run the code.
How to run a simple Java program using terminal command?
command line;terminal;java
I imagine the easiest way would be to press the blue arrow at the top.If it has to be command line though, tryJavac Main.javaTo compile the source to byte code which will give you a Main.class file, thenJava MainTo run it. The oracle website has a quick guide here