how to compile and run java program on command prompt code example
Example: cmd java compile
javac MyFisrtProgam.java // enter to compile
java MyfirstProgram // run program
javac MyFisrtProgam.java // enter to compile
java MyfirstProgram // run program