public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
This will compile your code. If there are no errors in the code, the command prompt will take you to
the next line. Now, type "java Main" to run the file: