If I write java codes in Notepad, How and where I can view the output? how to compile it?
If I write java codes in Notepad, How and where I can view the output? how to compile it?
Go to start, search for cmd and open it. This is the command line, next you need to find the file you want to compile, navigate your way with cd and dir.
Next step is to type
javac is the compiler command, and java runs the class file Javac created.Code:javac FileName.java
java FileName