Home  >  Article  >  Development Tools  >  How to use notepad to write java

How to use notepad to write java

藏色散人
藏色散人Original
2019-11-04 11:03:394219browse

How to use notepad to write java

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"

How to use notepad to write java

D:\src Create a new text file txt in the src folder of the D drive document.

How to use notepad to write java

Rename to Hello.java Click Yes in the dialog box that pops up.

How to use notepad to write java

How to use notepad to write java

How to use notepad to write java

#Right-click the newly created Hello.java file to pop up the shortcut menu, use edit with notepad Edit the Hello.java file.

How to use notepad to write java

# Write a java program named Hello in Notepad, and press Ctrl S to save it after writing.

How to use notepad to write java

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.

How to use notepad to write java

Compile javac in the command prompt, and then execute java Hello and a Hello! , indicating that the java program hello is written successfully.

How to use notepad to write java

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn