官术网_书友最值得收藏!

Creating a new project

To create a new project, click on File, then New Project, and choose Java Application:

We're going to need to give our project a distinctive name; let's call this one HelloWorld. Then, we can choose a location to put the file. Because this is our very first Java program, we should probably start from as close to scratch as possible. So let's uncheck the Create Main Class option so that NetBeans would give us pretty much a blank project. Then, click on Finish:

NetBeans will set up a filesystem for us. We can navigate this filesystem just like we were in a standard filesystem explorer:

The Source Packages file is where we'll be writing our code. You'll notice under the Libraries file that the JDK is linked, allowing us to access all of its many library resources:

主站蜘蛛池模板: 丽水市| 霍城县| 河源市| 五河县| 乾安县| 昆山市| 麦盖提县| 金昌市| 思南县| 溆浦县| 分宜县| 玉环县| 荥经县| 凤台县| 米林县| 台安县| 崇信县| 沾化县| 葵青区| 陆良县| 卢氏县| 盐山县| 罗田县| 洮南市| 德州市| 庆阳市| 昌黎县| 临江市| 平利县| 磴口县| 赤城县| 长乐市| 平凉市| 太谷县| 东至县| 宾阳县| 综艺| 明光市| 茂名市| 武山县| 三河市|