run java from cli code example
Example 1: run java file
javac hello.java
Example 2: run java from terminal
//Run this line to compile
javac programName.java
//Run this line to run
java programName
javac hello.java
//Run this line to compile
javac programName.java
//Run this line to run
java programName