- Open command prompt
- Go to your java programs folder i.e. type
cd java programs
- Compile your code i.e. type
javac YOUR_JAVA_PROGRAM_NAME.java
- Above command generates a java class file which is your executable file, to run it type
java YOUR_PROGRAM_NAME
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…