0
how to compile java program in command prompt
4 Respuestas
+ 1
javac filename.java to compile the program & then
java filename to execute the program!
0
write javac program name with .java extension and then press enter
0
go with this app
0
Solved it :
using your command prompt
navigate to the directory where your program is , if for instance your program is named Demo.java ,
type javac Demo.java then hit enter.
watch as your program compiles .