how to run a java file on cmd code example
Example 1: how to run java files
javac filename.java //(This will compile the program)
java filename //(This will run the file)
Example 2: how to run a java file in terminal
javac FirstJavaProgram.java
javac filename.java //(This will compile the program)
java filename //(This will run the file)
javac FirstJavaProgram.java