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

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:

主站蜘蛛池模板: 年辖:市辖区| 资溪县| 彭泽县| 三河市| 栾城县| 五原县| 惠安县| 诸城市| 奉化市| 漾濞| 合肥市| 新民市| 天长市| 南和县| 绩溪县| 丰顺县| 岳普湖县| 朝阳市| 平武县| 县级市| 涟源市| 临沂市| 墨竹工卡县| 济源市| 平陆县| 溧阳市| 阳原县| 蒙山县| 望江县| 北宁市| 翼城县| 太仆寺旗| 诏安县| 绿春县| 江阴市| 沙雅县| 全椒县| 社会| 建平县| 湄潭县| 礼泉县|