how to run java main file code example Example: compile java // compile > javac myCode.java // run > java myCode