How to use notepad to write java?
If Notepad is not installed, use Baidu to search for Notepad. It is recommended to download Notepad from Baidu Software Center and install Notepad after downloading.
Recommended: "notepad usage tutorial"
D:\src Create a new text file txt in the src folder of the D drive document.
Rename to Hello.java Click Yes in the dialog box that pops up.
#Right-click the newly created Hello.java file to pop up the shortcut menu, use edit with notepad Edit the Hello.java file.
# Write a java program named Hello in Notepad, and press Ctrl S to save it after writing.
D:\src In the src folder of drive D, right-click shift to pop up the shortcut menu and select "Open command window here" to open the CMD command prompt.
Compile javac in the command prompt, and then execute java Hello and a Hello! , indicating that the java program hello is written successfully.
The above are the steps for writing java programs using Notepad.
The above is the detailed content of How to use notepad to write java. For more information, please follow other related articles on the PHP Chinese website!