how to run program in terminal java code example Example: how to run a java file in terminal javac FirstJavaProgram.java