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

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:

主站蜘蛛池模板: 五莲县| 蒙自县| 庐江县| 镇沅| 津市市| 缙云县| 兴隆县| 陆河县| 尚志市| 云龙县| 河南省| 马山县| 泸溪县| 潮安县| 萨迦县| 梓潼县| 永德县| 徐水县| 延寿县| 桓台县| 乐陵市| 济南市| 绍兴市| 牙克石市| 巢湖市| 同心县| 蒲城县| 招远市| 高雄市| 巴南区| 双桥区| 庆安县| 临夏市| 龙山县| 宁强县| 沁水县| 安国市| 东乌珠穆沁旗| 全州县| 红河县| 成都市|